             expectOnConnect.fulfill()
         }
         socket.connect()
-        wait(for: [expectOnConnect], timeout: 1)
+        wait(for: [expectOnConnect], timeout: 2)
 
         let expectOnText = XCTestExpectation(description: "Expect `onText` being called")
         socket.onText = { (text) in

            expectOnText.fulfill()
        }
        socket.write(string: "ping text")
        wait(for: [expectOnText], timeout: 1)

        let expectOnDisconnect = XCTestExpectation(description: "Expect `onDisconnect` being called")
        socket.onDisconnect = { _ in

            }
        }
        socketManager.send(["msg": "mock", "mock": "EventCascading"])
        wait(for: [expectEventCascading], timeout: 2)

        // Disconnect
        let expectOnDidconnect = XCTestExpectation(description: "Expect `onDisconnect` being called")
