Skip to content

Commit cc920a9

Browse files
authored
Merge pull request #68444 from ktoso/reenable-async_task_cancellation_early
2 parents df4f824 + 47a333c commit cc920a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/Concurrency/Runtime/async_task_cancellation_early.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
// REQUIRES: concurrency
55
// REQUIRES: libdispatch
66

7-
// Temporarily disabled to unblock PR testing:
8-
// REQUIRES: rdar80745964
9-
107
// rdar://76038845
118
// REQUIRES: concurrency_runtime
129
// UNSUPPORTED: back_deployment_runtime
@@ -18,7 +15,7 @@ func test_detach_cancel_child_early() async {
1815
print(#function) // CHECK: test_detach_cancel_child_early
1916
let h: Task<Bool, Error> = Task.detached {
2017
async let childCancelled: Bool = { () -> Bool in
21-
await Task.sleep(2_000_000_000)
18+
try? await Task.sleep(for: .seconds(10)) // we'll be woken up by cancellation
2219
return Task.isCancelled
2320
}()
2421

0 commit comments

Comments
 (0)