fix(test): unflake web socket test on firefox

This commit is contained in:
Pavel 2020-10-30 12:45:07 -07:00
parent 5e50fe3d40
commit c9fa8c08e3

View File

@ -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 }) => {