diff --git a/Tests/NimbleTests/AsynchronousTest.swift b/Tests/NimbleTests/AsynchronousTest.swift index 342c0a69e..c44b9e688 100644 --- a/Tests/NimbleTests/AsynchronousTest.swift +++ b/Tests/NimbleTests/AsynchronousTest.swift @@ -86,13 +86,13 @@ final class AsyncTest: XCTestCase, XCTestCaseProvider { } expect { value }.toEventuallyNot(equal(1)) } - + func testWaitUntilWithCustomDefaultsTimeout() { AsyncDefaults.Timeout = 5 defer { AsyncDefaults.Timeout = 1 } - waitUntil() { done in + waitUntil { done in Thread.sleep(forTimeInterval: 4.8) done() }