Skip to content

Commit 8af35fe

Browse files
committed
[lldb] Attempt to alleviate flakiness in TestSwiftActorUnprioritisedJobs
1 parent fcec10c commit 8af35fe

File tree

1 file changed

+2
-1
lines changed
  • lldb/test/API/lang/swift/async/actors/unprioritised_jobs

1 file changed

+2
-1
lines changed

lldb/test/API/lang/swift/async/actors/unprioritised_jobs/main.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ actor Actor {
44
var data: Int = 15
55

66
func occupy() async {
7-
Thread.sleep(forTimeInterval: 100)
7+
Thread.sleep(forTimeInterval: 200)
88
}
99

1010
func work() async -> Int {
@@ -21,6 +21,7 @@ actor Actor {
2121
async let _ = a.work()
2222
async let _ = a.work()
2323
async let _ = a.work()
24+
try? await Task.sleep(for: .seconds(0.5))
2425
print("break here")
2526
}
2627
}

0 commit comments

Comments
 (0)