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 Jan 9, 2025
1 parent c565a7b commit 2b7ee1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/socket.io/test/event.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ describe("event", () => {
socket.timeout(0).emit("echo", 42, (err: Error) => {
assertIsError(err);

setTimeout(done, 10);
setTimeout(done, 20);
});
});

const [sid] = await runHandshake(port);
await eioPush(port, sid, "430[]");

setTimeout(() => eioPush(port, sid, "430[]"), 10);
},
);
});
Expand Down

0 comments on commit 2b7ee1d

Please sign in to comment.