From ec7c6f61878373c5a43132fb22065cde6c06a50f Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sun, 9 Jun 2019 06:30:01 +0200 Subject: [PATCH] Allow both EAUTH and ERROR for bad credential test in LibGit2 tests. (#32268) (cherry picked from commit 7bdba874581703747ae068b77e8546487b28739c) --- stdlib/LibGit2/test/online.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/LibGit2/test/online.jl b/stdlib/LibGit2/test/online.jl index 108143b3382f34..888af97fe0a694 100644 --- a/stdlib/LibGit2/test/online.jl +++ b/stdlib/LibGit2/test/online.jl @@ -68,7 +68,8 @@ mktempdir() do dir error("unexpected") catch ex @test isa(ex, LibGit2.Error.GitError) - @test ex.code == LibGit2.Error.ERROR + # Return code seems to vary, see #32186, #32219 + @test ex.code ∈ (LibGit2.Error.EAUTH, LibGit2.Error.ERROR) end Base.shred!(cred) end