Skip to content

Commit 9e7a02f

Browse files
authored
Merge pull request #39733 from bnbarham/cherry-84107841
Removing flaky escalation check
2 parents aa3b695 + 58a3114 commit 9e7a02f

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/Concurrency/Runtime/async_task_priority_current.swift

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,8 @@ func test_detach() async {
3939
print("a2: \(a2)") // CHECK: a2: TaskPriority(rawValue: 25)
4040
}.get()
4141

42-
await detach(priority: .default) {
43-
let a3 = Task.currentPriority
44-
// The priority of 'a3' may either be 21 (default) or elevated to that of
45-
// the main function, whichever is greater.
46-
print("a3: \(a3)") // CHECK: a3: TaskPriority(rawValue: [[#max(MAIN_PRIORITY,21)]]
47-
}.get()
48-
49-
let a4 = Task.currentPriority
50-
print("a4: \(a4)") // CHECK: a4: TaskPriority(rawValue: [[#MAIN_PRIORITY]])
42+
let a3 = Task.currentPriority
43+
print("a3: \(a3)") // CHECK: a3: TaskPriority(rawValue: [[#MAIN_PRIORITY]])
5144
}
5245

5346
@available(SwiftStdlib 5.5, *)

0 commit comments

Comments
 (0)