Skip to content

Commit

Permalink
fix(test): unflake web socket test on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman committed Oct 30, 2020
1 parent 5e50fe3 commit c9fa8c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/web-socket.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ describe('web socket', (test, { browserName }) => {
ws.addEventListener('message', () => { ws.close(); });
}, server.PORT);
await socketClosePromise;
if (isFirefox)
expect(log.join(':')).toBe('open:received<incoming>:sent<outgoing>:close');
else
expect(log.join(':')).toBe('open:sent<outgoing>:received<incoming>:close');
expect(log[0]).toBe('open');
expect(log[3]).toBe('close');
log.sort();
expect(log.join(':')).toBe('close:open:received<incoming>:sent<outgoing>');
});

it('should emit binary frame events', async ({ page, server }) => {
Expand Down

0 comments on commit c9fa8c0

Please sign in to comment.