Skip to content

Commit

Permalink
Adding Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
swhitty committed Feb 15, 2022
1 parent 1a7b00a commit 78fad96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Task+TimeoutTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ final class TaskTimeoutTests: XCTestCase {
func testTimeoutCancels() async {
// given
let task = Task(timeout: 0.5) {
try? await Task.sleep(nanoseconds: 10_000_000_000)
try await Task.sleep(nanoseconds: 10_000_000_000)
}

// when
Expand Down

0 comments on commit 78fad96

Please sign in to comment.