increase timeouts for travis
This commit is contained in:
parent
beaa4b695c
commit
54c54a23b7
@ -226,11 +226,11 @@ class SocketSideEffectTest: XCTestCase {
|
|||||||
|
|
||||||
socket.setTestStatus(.notConnected)
|
socket.setTestStatus(.notConnected)
|
||||||
|
|
||||||
socket.connect(timeoutAfter: 0.2, withHandler: {
|
socket.connect(timeoutAfter: 0.5, withHandler: {
|
||||||
expect.fulfill()
|
expect.fulfill()
|
||||||
})
|
})
|
||||||
|
|
||||||
waitForExpectations(timeout: 0.4)
|
waitForExpectations(timeout: 0.8)
|
||||||
}
|
}
|
||||||
|
|
||||||
func testConnectDoesNotTimeOutIfConnected() {
|
func testConnectDoesNotTimeOutIfConnected() {
|
||||||
@ -238,7 +238,7 @@ class SocketSideEffectTest: XCTestCase {
|
|||||||
|
|
||||||
socket.setTestStatus(.notConnected)
|
socket.setTestStatus(.notConnected)
|
||||||
|
|
||||||
socket.connect(timeoutAfter: 0.3, withHandler: {
|
socket.connect(timeoutAfter: 0.5, withHandler: {
|
||||||
XCTFail("Should not call timeout handler if status is connected")
|
XCTFail("Should not call timeout handler if status is connected")
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -247,7 +247,7 @@ class SocketSideEffectTest: XCTestCase {
|
|||||||
self.socket.setTestStatus(.connected)
|
self.socket.setTestStatus(.connected)
|
||||||
}
|
}
|
||||||
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.5) {
|
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.7) {
|
||||||
expect.fulfill()
|
expect.fulfill()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user