Skip to content
Open
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
3 changes: 2 additions & 1 deletion src/ParallelTestRunner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ function runtests(mod::Module, args::ParsedArgs;
running_tests = Dict{String, Float64}() # test => start_time
test_lock = ReentrantLock() # to protect crucial access to tests and running_tests

worker_tasks = Task[]

done = Ref(false)
function stop_work()
if !done[]
Expand Down Expand Up @@ -979,7 +981,6 @@ function runtests(mod::Module, args::ParsedArgs;
# execution
#

worker_tasks = Task[]
for _ in 1:nworkers
push!(worker_tasks, @async begin
while !done[]
Expand Down