From 66818ecbbceec9ee5ee5a735a8b14082860e8b69 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Sun, 1 Mar 2026 20:03:30 +0400 Subject: [PATCH] Define `worker_tasks` before using it --- src/ParallelTestRunner.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ParallelTestRunner.jl b/src/ParallelTestRunner.jl index dc83a6f..7fbe8e5 100644 --- a/src/ParallelTestRunner.jl +++ b/src/ParallelTestRunner.jl @@ -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[] @@ -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[]