We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e46a477 + ce524be commit fdaa43bCopy full SHA for fdaa43b
Tests/NIOFileSystemIntegrationTests/FileSystemTests.swift
@@ -882,7 +882,7 @@ final class FileSystemTests: XCTestCase {
882
// Give the cancellation time to kick in, this should be more than plenty.
883
if shouldSleep {
884
do {
885
- try await Task.sleep(for: .seconds(3))
+ try await Task.sleep(nanoseconds: 3_000_000_000)
886
XCTFail("\(description) Should have been cancelled by now!")
887
} catch is CancellationError {
888
// This is fine - we got cancelled as desired, let the rest of the in flight
0 commit comments