Skip to content

Commit 54c54a2

Browse files
committed
increase timeouts for travis
1 parent beaa4b6 commit 54c54a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SocketIO-MacTests/SocketSideEffectTest.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,19 +226,19 @@ class SocketSideEffectTest: XCTestCase {
226226

227227
socket.setTestStatus(.notConnected)
228228

229-
socket.connect(timeoutAfter: 0.2, withHandler: {
229+
socket.connect(timeoutAfter: 0.5, withHandler: {
230230
expect.fulfill()
231231
})
232232

233-
waitForExpectations(timeout: 0.4)
233+
waitForExpectations(timeout: 0.8)
234234
}
235235

236236
func testConnectDoesNotTimeOutIfConnected() {
237237
let expect = expectation(description: "The client should not call the timeout function")
238238

239239
socket.setTestStatus(.notConnected)
240240

241-
socket.connect(timeoutAfter: 0.3, withHandler: {
241+
socket.connect(timeoutAfter: 0.5, withHandler: {
242242
XCTFail("Should not call timeout handler if status is connected")
243243
})
244244

@@ -247,7 +247,7 @@ class SocketSideEffectTest: XCTestCase {
247247
self.socket.setTestStatus(.connected)
248248
}
249249

250-
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.5) {
250+
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.7) {
251251
expect.fulfill()
252252
}
253253

0 commit comments

Comments
 (0)