Skip to content

Commit d89a845

Browse files
remove minimum iterations in test, just base on time
1 parent 8b7a028 commit d89a845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/pkg.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,14 +377,14 @@ temp_pkg_dir() do project_path
377377
Pkg.UPDATED_REGISTRY_THIS_SESSION[] = true;
378378
Pkg.activate(temp = true);
379379
Pkg.add(\"Random\", io = devnull);
380-
i = 0
381380
touch(tempname(raw\"$flag_start_dir\")) # file marker that first part has finished
382381
while length(readdir(raw\"$flag_start_dir\")) < $(Sys.CPU_THREADS)
383382
# sync all processes to start at the same time
384383
sleep(0.1)
385384
end
386385
t = Timer(15)
387-
while !isfile(raw\"$flag_end_file\") && (i <= 1000 || isopen(t))
386+
i = 0
387+
while !isfile(raw\"$flag_end_file\") && isopen(t)
388388
global i += 1
389389
try
390390
Pkg.Types.EnvCache()

0 commit comments

Comments
 (0)