You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ParallelTestRunner.jl
+6-10Lines changed: 6 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -791,7 +791,6 @@ function runtests(mod::Module, args::ParsedArgs;
791
791
jobs::Int=clamp(_jobs, 1, length(tests))
792
792
println(stdout, "Running $jobs tests in parallel. If this is too many, specify the `--jobs=N` argument to the tests, or set the `JULIA_CPU_THREADS` environment variable.")
793
793
nworkers =min(jobs, length(tests))
794
-
workers =fill(nothing, nworkers)
795
794
796
795
t0 =time()
797
796
results = []
@@ -981,7 +980,7 @@ function runtests(mod::Module, args::ParsedArgs;
981
980
#
982
981
983
982
worker_tasks = Task[]
984
-
forpinworkers
983
+
for_in1:nworkers
985
984
push!(worker_tasks, @asyncbegin
986
985
while!done[]
987
986
# get a test to run
@@ -1001,14 +1000,11 @@ function runtests(mod::Module, args::ParsedArgs;
1001
1000
else
1002
1001
test_worker(test, init_worker_code)
1003
1002
end
1004
-
# Create a new binding instead of assigning to the existing one to avoid `p` from being boxed
0 commit comments