Skip to content

Commit

Permalink
test: fix randomly failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed May 10, 2021
1 parent 499c892 commit 95d9e4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/socket.io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,9 @@ describe("socket.io", () => {
clientSocket.off("connect", init);
clientSocket.io.engine.close();

clientSocket.connect();
process.nextTick(() => {
clientSocket.connect();
});
clientSocket.on("connect", () => {
done();
});
Expand Down

0 comments on commit 95d9e4a

Please sign in to comment.