Skip to content

Commit

Permalink
Increase test timeouts to allows tests to build on slow CI machines
Browse files Browse the repository at this point in the history
  • Loading branch information
atdrendel authored Mar 16, 2021
1 parent 5e7f67e commit 5fd7e7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/DispatchTimerTests/DispatchTimerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ final class DispatchTimerTests: XCTestCase {
func testNonRepeatingTimer() throws {
let ex = expectation(description: "Should have fired timer")
let timer = DispatchTimer(.milliseconds(50), block: { ex.fulfill() })
wait(for: [ex], timeout: 0.1)
wait(for: [ex], timeout: 0.2)
timer.invalidate()
}

Expand All @@ -18,7 +18,7 @@ final class DispatchTimerTests: XCTestCase {
repeat: true,
block: { ex.fulfill() }
)
wait(for: [ex], timeout: 0.2)
wait(for: [ex], timeout: 0.4)
timer.invalidate()
}

Expand All @@ -30,7 +30,7 @@ final class DispatchTimerTests: XCTestCase {
block: { ex.fulfill() }
)
XCTAssertEqual(timeToFire, timer.nextDeadline)
wait(for: [ex], timeout: 0.1)
wait(for: [ex], timeout: 0.2)
timer.invalidate()
}

Expand All @@ -51,7 +51,7 @@ final class DispatchTimerTests: XCTestCase {
block: { ex.fulfill() }
)
XCTAssertEqual(timeToFire, timer.nextDeadline)
wait(for: [ex], timeout: 0.04)
wait(for: [ex], timeout: 0.1)
timer.invalidate()
}

Expand Down

0 comments on commit 5fd7e7b

Please sign in to comment.