From 2a0fe0720b979360820e871717855b894e76e562 Mon Sep 17 00:00:00 2001 From: S4cha Date: Thu, 2 Jan 2020 11:03:03 +0100 Subject: [PATCH] Relaxes test timers (for bitrise) --- Tests/ThenTests/AsyncAwaitTests.swift | 4 ++-- Tests/ThenTests/OnErrorTests.swift | 2 +- Tests/ThenTests/RegisterThenTests.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/ThenTests/AsyncAwaitTests.swift b/Tests/ThenTests/AsyncAwaitTests.swift index 65c50b0b7a4..ab84db59f92 100644 --- a/Tests/ThenTests/AsyncAwaitTests.swift +++ b/Tests/ThenTests/AsyncAwaitTests.swift @@ -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() { @@ -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 diff --git a/Tests/ThenTests/OnErrorTests.swift b/Tests/ThenTests/OnErrorTests.swift index b35f2742983..4fbe9fb487c 100644 --- a/Tests/ThenTests/OnErrorTests.swift +++ b/Tests/ThenTests/OnErrorTests.swift @@ -26,7 +26,7 @@ class OnErrorTests: XCTestCase { finallyExpectation.fulfill() } - waitForExpectations(timeout: 0.5, handler: nil) + waitForExpectations(timeout: 0.7, handler: nil) } func testOnErrorCalledWhenSynchronousRejects() { diff --git a/Tests/ThenTests/RegisterThenTests.swift b/Tests/ThenTests/RegisterThenTests.swift index 88cae6ecfc7..8b3b5469b4b 100644 --- a/Tests/ThenTests/RegisterThenTests.swift +++ b/Tests/ThenTests/RegisterThenTests.swift @@ -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() {