Skip to content

Commit

Permalink
safer clone during tests (#4380)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg authored Sep 26, 2022
1 parent 60bbdcc commit 30c667e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test/test_backends.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ reference_path(backend, version) = reference_dir("Plots", string(backend), strin

if !isdir(reference_dir())
mkpath(reference_dir())
LibGit2.clone(
"https://github.com/JuliaPlots/PlotReferenceImages.jl.git",
reference_dir(),
)
for i in 1:6
try
LibGit2.clone(
"https://github.com/JuliaPlots/PlotReferenceImages.jl.git",
reference_dir(),
)
break
catch err
@warn err
sleep(20i)
end
end
end

function reference_file(backend, i, version)
Expand Down

0 comments on commit 30c667e

Please sign in to comment.