Skip to content

Commit 5e67484

Browse files
authored
Merge pull request #684 from Quick/reduce-test-duration
Reduce test duration in AsynchronousTest
2 parents 98d42d8 + 60ad168 commit 5e67484

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/NimbleTests/AsynchronousTest.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ final class AsyncTest: XCTestCase, XCTestCaseProvider {
6161
}
6262

6363
func testWaitUntilWithCustomDefaultsTimeout() {
64-
AsyncDefaults.Timeout = 5
64+
AsyncDefaults.Timeout = 3
6565
defer {
6666
AsyncDefaults.Timeout = 1
6767
}
6868
waitUntil { done in
69-
Thread.sleep(forTimeInterval: 4.8)
69+
Thread.sleep(forTimeInterval: 2.8)
7070
done()
7171
}
7272
}
@@ -121,7 +121,7 @@ final class AsyncTest: XCTestCase, XCTestCaseProvider {
121121
let msg = "-waitUntil() timed out but was unable to run the timeout handler because the main thread is unresponsive (0.5 seconds is allow after the wait times out). Conditions that may cause this include processing blocking IO on the main thread, calls to sleep(), deadlocks, and synchronous IPC. Nimble forcefully stopped run loop which may cause future failures in test run."
122122
failsWithErrorMessage(msg) {
123123
waitUntil(timeout: 1) { done in
124-
Thread.sleep(forTimeInterval: 5.0)
124+
Thread.sleep(forTimeInterval: 3.0)
125125
done()
126126
}
127127
}

0 commit comments

Comments
 (0)