Skip to content

Commit

Permalink
Relax 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 f2b93cf commit a399b8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Tests/ThenTests/AsyncAwaitTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class AsyncAwaitTests: XCTestCase {
}.onError { _ in
exp.fulfill()
}
waitForExpectations(timeout: 0.3, handler: nil)
waitForExpectations(timeout: 0.5, handler: nil)
}

func testCatchFailingAsyncAwait() {
Expand Down Expand Up @@ -95,7 +95,7 @@ class AsyncAwaitTests: XCTestCase {
}.onError { _ in
exp.fulfill()
}
waitForExpectations(timeout: 0.3, handler: nil)
waitForExpectations(timeout: 0.5, handler: nil)
}

func testCatchFailingAsyncAwaitOperator() {
Expand Down Expand Up @@ -192,7 +192,7 @@ class AsyncAwaitTests: XCTestCase {
XCTAssertEqual(userId, 1234)
exp.fulfill()
}
waitForExpectations(timeout: 0.3, handler: nil)
waitForExpectations(timeout: 0.5, handler: nil)
}

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

func testAwaitNilingOperatorErrorNilOptional() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThenTests/ChainTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ class ChainTests: XCTestCase {
}.onError { _ in
print("ERROR")
}
waitForExpectations(timeout: 0.3, handler: nil)
waitForExpectations(timeout: 0.5, handler: nil)
}
}
2 changes: 1 addition & 1 deletion Tests/ThenTests/FinallyTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class FinallyTests: XCTestCase {
p.finally {
finally4.fulfill()
}
waitForExpectations(timeout: 0.3, handler: nil)
waitForExpectations(timeout: 0.5, handler: nil)
}

func testRegisterFinallyDoesntStartThePromise() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThenTests/ThenTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ThenTests: XCTestCase {
print("name :\(name)")
thenExpectation.fulfill()
}
waitForExpectations(timeout: 0.6, handler: nil)
waitForExpectations(timeout: 0.7, handler: nil)
}

func testSynchronousChainsWorksProprely() {
Expand Down

0 comments on commit a399b8f

Please sign in to comment.