File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -226,19 +226,19 @@ class SocketSideEffectTest: XCTestCase {
226
226
227
227
socket. setTestStatus ( . notConnected)
228
228
229
- socket. connect ( timeoutAfter: 0.2 , withHandler: {
229
+ socket. connect ( timeoutAfter: 0.5 , withHandler: {
230
230
expect. fulfill ( )
231
231
} )
232
232
233
- waitForExpectations ( timeout: 0.4 )
233
+ waitForExpectations ( timeout: 0.8 )
234
234
}
235
235
236
236
func testConnectDoesNotTimeOutIfConnected( ) {
237
237
let expect = expectation ( description: " The client should not call the timeout function " )
238
238
239
239
socket. setTestStatus ( . notConnected)
240
240
241
- socket. connect ( timeoutAfter: 0.3 , withHandler: {
241
+ socket. connect ( timeoutAfter: 0.5 , withHandler: {
242
242
XCTFail ( " Should not call timeout handler if status is connected " )
243
243
} )
244
244
@@ -247,7 +247,7 @@ class SocketSideEffectTest: XCTestCase {
247
247
self . socket. setTestStatus ( . connected)
248
248
}
249
249
250
- DispatchQueue . main. asyncAfter ( deadline: DispatchTime . now ( ) + 0.5 ) {
250
+ DispatchQueue . main. asyncAfter ( deadline: DispatchTime . now ( ) + 0.7 ) {
251
251
expect. fulfill ( )
252
252
}
253
253
You can’t perform that action at this time.
0 commit comments