             XCTAssertFalse(connected)
             expectDisconnectEvent.fulfill()
         }
-        wait(for: [expectOnDidconnect, expectDisconnectEvent], timeout: 1)
+        wait(for: [expectOnDidconnect, expectDisconnectEvent], timeout: 2)
     }
 
     func testConnectionInterruption() {

            expectOnConnectionInterrupted.fulfill()
        }
        socket.disconnect()
        wait(for: [expectOnConnectionInterrupted], timeout: 1)
    }

}

            XCTAssertTrue(connected)
            expectOnConnect.fulfill()
        }
        wait(for: [expectOnConnect, expectReceivedConnect], timeout: 2)
        socketManager.clear()

        // Event Cascading in WebSocketMock
