Skip to content

Commit 78fad96

Browse files
committed
Adding Timeout
1 parent 1a7b00a commit 78fad96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Task+TimeoutTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ final class TaskTimeoutTests: XCTestCase {
6363
func testTimeoutCancels() async {
6464
// given
6565
let task = Task(timeout: 0.5) {
66-
try? await Task.sleep(nanoseconds: 10_000_000_000)
66+
try await Task.sleep(nanoseconds: 10_000_000_000)
6767
}
6868

6969
// when

0 commit comments

Comments
 (0)