Skip to content

Commit bfba4b6

Browse files
committed
[Concurrency] Fix racy test, too sensitive on println ordering
The test only checks Task done and then "deinit" happening, however there is another print that may happen in between. Since it's racy which one comes first, on slower instances -- like simulators, it could get in the way. Remove the println we're not even checking for but that breaks the CHECK-NEXT Resolves rdar://137221764
1 parent 96143db commit bfba4b6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/Concurrency/Runtime/async_task_executor_unstructured_task_ownership.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ nonisolated func nonisolatedFunc(expectedQueue queue: DispatchQueue) async {
8080
}
8181

8282
executor = nil
83-
print("In main: executor = nil")
8483

8584
await task.value
8685
// The executor is ONLY released after the task has completed,

0 commit comments

Comments
 (0)