Skip to content

Commit 672142a

Browse files
committed
gardening
1 parent b723111 commit 672142a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

FlyingFox/Tests/HTTPServerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ extension URLSessionWebSocketTask.Message: Equatable {
376376
}
377377
#endif
378378

379-
private extension Task where Success == Never, Failure == Never {
379+
extension Task where Success == Never, Failure == Never {
380380
static func sleep(seconds: TimeInterval) async throws {
381381
try await sleep(nanoseconds: UInt64(1_000_000_000 * seconds))
382382
}

FlyingFox/Tests/Task+TimeoutTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class TaskTimeoutTests: XCTestCase {
4747
func testTimeoutThrowsError_WhenTimeoutExpires() async {
4848
// given
4949
let task = Task<Void, Error>(timeout: 0.5) {
50-
try? await Task.sleep(nanoseconds: 10_000_000_000)
50+
try? await Task.sleep(seconds: 10)
5151
}
5252

5353
// then
@@ -62,7 +62,7 @@ final class TaskTimeoutTests: XCTestCase {
6262
func testTimeoutCancels() async {
6363
// given
6464
let task = Task(timeout: 0.5) {
65-
try await Task.sleep(nanoseconds: 10_000_000_000)
65+
try await Task.sleep(seconds: 10)
6666
}
6767

6868
// when

0 commit comments

Comments
 (0)