Skip to content

Commit 05488c4

Browse files
authored
docs: improve test suite (#46)
The second WebSocket created after an upgrade should gracefully close and not throw an error as specified the official implementation.
1 parent de247df commit 05488c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test-suite/test-suite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ describe("Engine.IO protocol", () => {
557557
`${WS_URL}/engine.io/?EIO=4&transport=websocket&sid=${sid}`
558558
);
559559

560-
await waitFor(socket2, "error");
560+
await waitFor(socket2, "close");
561561

562562
socket.send("4hello");
563563

0 commit comments

Comments
 (0)