Skip to content

Commit a399b8f

Browse files
committed
Relax test timers (for Bitrise)
1 parent f2b93cf commit a399b8f

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

Tests/ThenTests/AsyncAwaitTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class AsyncAwaitTests: XCTestCase {
3333
}.onError { _ in
3434
exp.fulfill()
3535
}
36-
waitForExpectations(timeout: 0.3, handler: nil)
36+
waitForExpectations(timeout: 0.5, handler: nil)
3737
}
3838

3939
func testCatchFailingAsyncAwait() {
@@ -95,7 +95,7 @@ class AsyncAwaitTests: XCTestCase {
9595
}.onError { _ in
9696
exp.fulfill()
9797
}
98-
waitForExpectations(timeout: 0.3, handler: nil)
98+
waitForExpectations(timeout: 0.5, handler: nil)
9999
}
100100

101101
func testCatchFailingAsyncAwaitOperator() {
@@ -192,7 +192,7 @@ class AsyncAwaitTests: XCTestCase {
192192
XCTAssertEqual(userId, 1234)
193193
exp.fulfill()
194194
}
195-
waitForExpectations(timeout: 0.3, handler: nil)
195+
waitForExpectations(timeout: 0.5, handler: nil)
196196
}
197197

198198
func testAwaitNilingOperatorErrorOptinal() {
@@ -205,7 +205,7 @@ class AsyncAwaitTests: XCTestCase {
205205
}.onError { _ in
206206
XCTFail("testFailingAsyncAwait failed")
207207
}
208-
waitForExpectations(timeout: 0.3, handler: nil)
208+
waitForExpectations(timeout: 0.5, handler: nil)
209209
}
210210

211211
func testAwaitNilingOperatorErrorNilOptional() {

Tests/ThenTests/ChainTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ class ChainTests: XCTestCase {
6363
}.onError { _ in
6464
print("ERROR")
6565
}
66-
waitForExpectations(timeout: 0.3, handler: nil)
66+
waitForExpectations(timeout: 0.5, handler: nil)
6767
}
6868
}

Tests/ThenTests/FinallyTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class FinallyTests: XCTestCase {
6969
p.finally {
7070
finally4.fulfill()
7171
}
72-
waitForExpectations(timeout: 0.3, handler: nil)
72+
waitForExpectations(timeout: 0.5, handler: nil)
7373
}
7474

7575
func testRegisterFinallyDoesntStartThePromise() {

Tests/ThenTests/ThenTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ThenTests: XCTestCase {
7373
print("name :\(name)")
7474
thenExpectation.fulfill()
7575
}
76-
waitForExpectations(timeout: 0.6, handler: nil)
76+
waitForExpectations(timeout: 0.7, handler: nil)
7777
}
7878

7979
func testSynchronousChainsWorksProprely() {

0 commit comments

Comments
 (0)