diff --git a/test/socket.io.ts b/test/socket.io.ts index f670e2ea4d..d6255e815c 100644 --- a/test/socket.io.ts +++ b/test/socket.io.ts @@ -1073,7 +1073,7 @@ describe("socket.io", () => { reconnectionDelay: 100, }); clientSocket.on("connect", () => { - srv.close(); + sio.close(); }); clientSocket.io.on("reconnect_failed", () => {