Skip to content

Removing flaky escalation check #39692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions test/Concurrency/Runtime/async_task_priority_current.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,8 @@ func test_detach() async {
print("a2: \(a2)") // CHECK: a2: TaskPriority(rawValue: 25)
}.get()

await detach(priority: .default) {
let a3 = Task.currentPriority
// The priority of 'a3' may either be 21 (default) or elevated to that of
// the main function.
print("a3: \(a3)") // CHECK: a3: TaskPriority(rawValue: {{21|[[#MAIN_PRIORITY]]}})
}.get()

let a4 = Task.currentPriority
print("a4: \(a4)") // CHECK: a4: TaskPriority(rawValue: [[#MAIN_PRIORITY]])
let a3 = Task.currentPriority
print("a3: \(a3)") // CHECK: a3: TaskPriority(rawValue: [[#MAIN_PRIORITY]])
}

@available(SwiftStdlib 5.5, *)
Expand Down