@@ -207,7 +207,7 @@ extension TestNSURLSession {
207
207
208
208
delegate. completionExpectation = expectationWithDescription ( " Task did complete " )
209
209
task. resume ( )
210
- waitForExpectationsWithTimeout ( 0. 1, handler: nil )
210
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
211
211
XCTAssertEqual ( task. state, NSURLSessionTaskState . Completed)
212
212
213
213
guard let error = delegate. completionError else { XCTFail ( " URL: ' \( urlString) ' " ) ; return }
@@ -243,7 +243,7 @@ extension TestNSURLSession {
243
243
244
244
delegate. completionExpectation = expectationWithDescription ( " Task did complete " )
245
245
task. resume ( )
246
- waitForExpectationsWithTimeout ( 1000 , handler: nil )
246
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
247
247
XCTAssertEqual ( task. state, NSURLSessionTaskState . Completed)
248
248
249
249
guard let error = delegate. completionError else { XCTFail ( ) ; return }
@@ -284,7 +284,7 @@ extension TestNSURLSession {
284
284
XCTAssertEqual ( task. state, NSURLSessionTaskState . Suspended)
285
285
task. resume ( )
286
286
287
- waitForExpectationsWithTimeout ( 1.0 , handler: nil )
287
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
288
288
XCTAssertEqual ( task. state, NSURLSessionTaskState . Running)
289
289
290
290
do {
@@ -305,7 +305,7 @@ extension TestNSURLSession {
305
305
delegate. completionExpectation = expectationWithDescription ( " Task did complete " )
306
306
r. completionHandler ( r. newRequest)
307
307
}
308
- waitForExpectationsWithTimeout ( 0. 1, handler: nil )
308
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
309
309
XCTAssertEqual ( task. state, NSURLSessionTaskState . Completed)
310
310
311
311
do {
@@ -368,7 +368,7 @@ extension TestNSURLSession {
368
368
XCTAssertEqual ( task. state, NSURLSessionTaskState . Suspended)
369
369
task. resume ( )
370
370
XCTAssertEqual ( task. state, NSURLSessionTaskState . Running)
371
- waitForExpectationsWithTimeout ( 0. 1, handler: nil )
371
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
372
372
XCTAssertEqual ( task. state, NSURLSessionTaskState . Completed)
373
373
}
374
374
}
@@ -415,7 +415,7 @@ extension TestNSURLSession {
415
415
416
416
delegate. completionExpectation = expectationWithDescription ( " Task did complete " )
417
417
task. resume ( )
418
- waitForExpectationsWithTimeout ( 0. 1, handler: nil )
418
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
419
419
420
420
do {
421
421
XCTAssertEqual ( delegate. allResponses. count, 1 )
@@ -490,7 +490,7 @@ extension TestNSURLSession {
490
490
491
491
delegate. completionExpectation = expectationWithDescription ( " Task did complete " )
492
492
task. resume ( )
493
- waitForExpectationsWithTimeout ( 1000 , handler: nil )
493
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
494
494
495
495
do {
496
496
XCTAssertEqual ( delegate. allResponses. count, 1 )
@@ -530,7 +530,7 @@ extension TestNSURLSession {
530
530
531
531
delegate. completionExpectation = expectationWithDescription ( " Task did complete " )
532
532
task. resume ( )
533
- waitForExpectationsWithTimeout ( 1000 , handler: nil )
533
+ waitForExpectationsWithTimeout ( 1 , handler: nil )
534
534
535
535
do {
536
536
XCTAssertEqual ( delegate. allResponses. count, 0 )
0 commit comments