Skip to content

Commit 6655c6b

Browse files
use iterations rather than time because first is slow
1 parent 3a71760 commit 6655c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pkg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ temp_pkg_dir() do project_path
371371
for i in 1:Sys.CPU_THREADS
372372
iob = IOBuffer()
373373
t = @async run(pipeline(`$(Base.julia_cmd()) --project="$(pkgdir(Pkg))"
374-
-e "import Pkg; t = Timer(10); while isopen(t) Pkg.activate(temp = true); Pkg.add(\"Random\"); Pkg.Types.EnvCache(); end"`,
374+
-e "import Pkg; for i in 1:50 Pkg.activate(temp = true); Pkg.add(\"Random\", io = devnull); Pkg.Types.EnvCache(); end"`,
375375
stderr = iob, stdout = devnull))
376376
push!(tasks, t)
377377
push!(iobs, iob)

0 commit comments

Comments
 (0)