Skip to content

Commit 1d708be

Browse files
authored
Define worker_tasks before using it (#104)
1 parent 61e6002 commit 1d708be

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
@@ -798,6 +798,8 @@ function runtests(mod::Module, args::ParsedArgs;
798798
running_tests = Dict{String, Float64}() # test => start_time
799799
test_lock = ReentrantLock() # to protect crucial access to tests and running_tests
800800

801+
worker_tasks = Task[]
802+
801803
done = false
802804
function stop_work()
803805
if !done
@@ -980,7 +982,6 @@ function runtests(mod::Module, args::ParsedArgs;
980982
# execution
981983
#
982984

983-
worker_tasks = Task[]
984985
for p in workers
985986
push!(worker_tasks, @async begin
986987
while !done

0 commit comments

Comments
 (0)