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 Sep 6, 2024
1 parent 13c133a commit 443890b
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 @@ -1235,6 +1235,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 443890b

Please sign in to comment.