From 78fad969815e0f832871f3fd9d6a94536718420b Mon Sep 17 00:00:00 2001 From: Simon Whitty Date: Tue, 15 Feb 2022 23:27:22 +1100 Subject: [PATCH] Adding Timeout --- Tests/Task+TimeoutTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Task+TimeoutTests.swift b/Tests/Task+TimeoutTests.swift index 5f3d10da..fa656629 100644 --- a/Tests/Task+TimeoutTests.swift +++ b/Tests/Task+TimeoutTests.swift @@ -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