From 5db462554a81a50ecb2a0b98c394f5b58ed5a244 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sat, 8 Jun 2019 15:54:54 +0200 Subject: [PATCH] Allow both EAUTH and ERROR for bad credential test in LibGit2 tests. --- 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 108143b3382f3..888af97fe0a69 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