Skip to content

Commit 95d9e4a

Browse files
test: fix randomly failing test
1 parent 499c892 commit 95d9e4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/socket.io.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,9 @@ describe("socket.io", () => {
984984
clientSocket.off("connect", init);
985985
clientSocket.io.engine.close();
986986

987-
clientSocket.connect();
987+
process.nextTick(() => {
988+
clientSocket.connect();
989+
});
988990
clientSocket.on("connect", () => {
989991
done();
990992
});

0 commit comments

Comments
 (0)