Skip to content

Commit 66818ec

Browse files
committed
Define worker_tasks before using it
1 parent 7f27702 commit 66818ec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ParallelTestRunner.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,8 @@ function runtests(mod::Module, args::ParsedArgs;
797797
running_tests = Dict{String, Float64}() # test => start_time
798798
test_lock = ReentrantLock() # to protect crucial access to tests and running_tests
799799

800+
worker_tasks = Task[]
801+
800802
done = Ref(false)
801803
function stop_work()
802804
if !done[]
@@ -979,7 +981,6 @@ function runtests(mod::Module, args::ParsedArgs;
979981
# execution
980982
#
981983

982-
worker_tasks = Task[]
983984
for _ in 1:nworkers
984985
push!(worker_tasks, @async begin
985986
while !done[]

0 commit comments

Comments
 (0)