@@ -15,36 +15,36 @@ class AfterTests: XCTestCase {
1515 let ex2 = expectation ( description: " " )
1616 let cc2 = after ( seconds: 0 ) . cancellize ( ) . done ( fail) . catch ( policy: . allErrors, ex2. fulfill)
1717 cc2. cancel ( )
18- waitForExpectations ( timeout: 2 , handler: nil )
18+ waitForExpectations ( timeout: 5 , handler: nil )
1919
2020 let ex3 = expectation ( description: " " )
2121 let cc3 = after ( . seconds( 0 ) ) . cancellize ( ) . done ( fail) . catch ( policy: . allErrors, ex3. fulfill)
2222 cc3. cancel ( )
23- waitForExpectations ( timeout: 2 , handler: nil )
23+ waitForExpectations ( timeout: 5 , handler: nil )
2424 }
2525
2626 func testNegative( ) {
2727 let ex2 = expectation ( description: " " )
2828 let cc2 = after ( seconds: - 1 ) . cancellize ( ) . done ( fail) . catch ( policy: . allErrors, ex2. fulfill)
2929 cc2. cancel ( )
30- waitForExpectations ( timeout: 2 , handler: nil )
30+ waitForExpectations ( timeout: 5 , handler: nil )
3131
3232 let ex3 = expectation ( description: " " )
3333 let cc3 = after ( . seconds( - 1 ) ) . cancellize ( ) . done ( fail) . catch ( policy: . allErrors, ex3. fulfill)
3434 cc3. cancel ( )
35- waitForExpectations ( timeout: 2 , handler: nil )
35+ waitForExpectations ( timeout: 5 , handler: nil )
3636 }
3737
3838 func testPositive( ) {
3939 let ex2 = expectation ( description: " " )
4040 let cc2 = after ( seconds: 1 ) . cancellize ( ) . done ( fail) . catch ( policy: . allErrors, ex2. fulfill)
4141 cc2. cancel ( )
42- waitForExpectations ( timeout: 2 , handler: nil )
42+ waitForExpectations ( timeout: 5 , handler: nil )
4343
4444 let ex3 = expectation ( description: " " )
4545 let cc3 = after ( . seconds( 1 ) ) . cancellize ( ) . done ( fail) . catch ( policy: . allErrors, ex3. fulfill)
4646 cc3. cancel ( )
47- waitForExpectations ( timeout: 2 , handler: nil )
47+ waitForExpectations ( timeout: 5 , handler: nil )
4848 }
4949
5050 func testCancellableAfter( ) {
@@ -87,7 +87,7 @@ class AfterTests: XCTestCase {
8787 error. isCancelled ? exCancel. fulfill ( ) : XCTFail ( " unexpected error \( error) " )
8888 } . cancel ( )
8989
90- wait ( for: [ exComplete, exCancelComplete, exCancel] , timeout: 1 )
90+ wait ( for: [ exComplete, exCancelComplete, exCancel] , timeout: 5 )
9191 }
9292
9393 func testCancelForPromise_Done( ) {
@@ -104,7 +104,7 @@ class AfterTests: XCTestCase {
104104
105105 promise. cancel ( )
106106
107- wait ( for: [ exComplete] , timeout: 1 )
107+ wait ( for: [ exComplete] , timeout: 5 )
108108 }
109109
110110 func testCancelForGuarantee_Done( ) {
@@ -116,6 +116,6 @@ class AfterTests: XCTestCase {
116116 error. isCancelled ? exComplete. fulfill ( ) : XCTFail ( " error: \( error) " )
117117 } . cancel ( )
118118
119- wait ( for: [ exComplete] , timeout: 1 )
119+ wait ( for: [ exComplete] , timeout: 5 )
120120 }
121121}
0 commit comments