Skip to content

Commit daf7769

Browse files
[NFC] Remove unecessary variable (#112)
`jobs` is already always <= to `length(tests)`, so `nworkers` will never be different than `jobs`.
1 parent 1d708be commit daf7769

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ParallelTestRunner.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,7 @@ function runtests(mod::Module, args::ParsedArgs;
790790
jobs = something(args.jobs, default_njobs())
791791
jobs = clamp(jobs, 1, length(tests))
792792
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-
nworkers = min(jobs, length(tests))
794-
workers = fill(nothing, nworkers)
793+
workers = fill(nothing, jobs)
795794

796795
t0 = time()
797796
results = []

0 commit comments

Comments
 (0)