From c0d171f7287152cc874adc4ea3411e1134e8a7a0 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Mon, 12 Oct 2020 16:13:28 +0200 Subject: [PATCH] test: use the reconnect event of the Manager Following https://github.com/socketio/socket.io-client/commit/132f8ec918a596eec872aee0c61d4ce63714c400 --- test/socket.io.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/socket.io.ts b/test/socket.io.ts index 41428c6955..8c74b2fb02 100644 --- a/test/socket.io.ts +++ b/test/socket.io.ts @@ -790,7 +790,7 @@ describe("socket.io", () => { srv.close(); }); - clientSocket.on("reconnect_failed", () => { + clientSocket.io.on("reconnect_failed", () => { done(); }); }); @@ -1516,7 +1516,7 @@ describe("socket.io", () => { }); clientSocket.once("connect", () => { srv.close(() => { - clientSocket.on("reconnect", () => { + clientSocket.io.on("reconnect", () => { clientSocket.emit("ev", "payload"); }); sio.listen(port);