Skip to content

Commit

Permalink
Relaxes test timers (for bitrise)
Browse files Browse the repository at this point in the history
  • Loading branch information
s4cha committed Jan 2, 2020
1 parent a399b8f commit 2a0fe07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/ThenTests/AsyncAwaitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class AsyncAwaitTests: XCTestCase {
XCTAssertEqual(userId, 1234)
exp.fulfill()
}
waitForExpectations(timeout: 0.3, handler: nil)
waitForExpectations(timeout: 0.5, handler: nil)
}

func testAwaitNilingOperatorError() {
Expand All @@ -179,7 +179,7 @@ class AsyncAwaitTests: XCTestCase {
}.onError { _ in
XCTFail("testFailingAsyncAwait failed")
}
waitForExpectations(timeout: 0.3, handler: nil)
waitForExpectations(timeout: 0.5, handler: nil)
}

/// Optional Operator ..? - nils out instead of throwing
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThenTests/OnErrorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class OnErrorTests: XCTestCase {
finallyExpectation.fulfill()
}

waitForExpectations(timeout: 0.5, handler: nil)
waitForExpectations(timeout: 0.7, handler: nil)
}

func testOnErrorCalledWhenSynchronousRejects() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThenTests/RegisterThenTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class RegisterThenTests: XCTestCase {
.then { _ in
timerExpectation.fulfill()
}
waitForExpectations(timeout: 0.5, handler: nil)
waitForExpectations(timeout: 0.7, handler: nil)
}

func testRegisterThenMultipleThenOnlyCallOriginalPromiseOnce() {
Expand Down

0 comments on commit 2a0fe07

Please sign in to comment.