Skip to content

Commit 2a0fe07

Browse files
committed
Relaxes test timers (for bitrise)
1 parent a399b8f commit 2a0fe07

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/ThenTests/AsyncAwaitTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class AsyncAwaitTests: XCTestCase {
167167
XCTAssertEqual(userId, 1234)
168168
exp.fulfill()
169169
}
170-
waitForExpectations(timeout: 0.3, handler: nil)
170+
waitForExpectations(timeout: 0.5, handler: nil)
171171
}
172172

173173
func testAwaitNilingOperatorError() {
@@ -179,7 +179,7 @@ class AsyncAwaitTests: XCTestCase {
179179
}.onError { _ in
180180
XCTFail("testFailingAsyncAwait failed")
181181
}
182-
waitForExpectations(timeout: 0.3, handler: nil)
182+
waitForExpectations(timeout: 0.5, handler: nil)
183183
}
184184

185185
/// Optional Operator ..? - nils out instead of throwing

Tests/ThenTests/OnErrorTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class OnErrorTests: XCTestCase {
2626
finallyExpectation.fulfill()
2727
}
2828

29-
waitForExpectations(timeout: 0.5, handler: nil)
29+
waitForExpectations(timeout: 0.7, handler: nil)
3030
}
3131

3232
func testOnErrorCalledWhenSynchronousRejects() {

Tests/ThenTests/RegisterThenTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class RegisterThenTests: XCTestCase {
143143
.then { _ in
144144
timerExpectation.fulfill()
145145
}
146-
waitForExpectations(timeout: 0.5, handler: nil)
146+
waitForExpectations(timeout: 0.7, handler: nil)
147147
}
148148

149149
func testRegisterThenMultipleThenOnlyCallOriginalPromiseOnce() {

0 commit comments

Comments
 (0)