Skip to content

Commit

Permalink
Fix race in test/threads_exec.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
topolarity committed Jul 1, 2024
1 parent 6cebcee commit 66296c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/threads_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,7 @@ end
@testset "throw=true" begin
tasks, event = create_tasks()
push!(tasks, Threads.@spawn error("Error"))
wait(tasks[end]; throw=false)

@test_throws CompositeException begin
waitany(convert_tasks(tasks_type, tasks); throw=true)
Expand Down

0 comments on commit 66296c0

Please sign in to comment.