File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments