Skip to content

Commit ec7c6f6

Browse files
fredrikekreKristofferC
authored andcommitted
Allow both EAUTH and ERROR for bad credential test in LibGit2 tests. (#32268)
(cherry picked from commit 7bdba87)
1 parent b0c7414 commit ec7c6f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/LibGit2/test/online.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ mktempdir() do dir
6868
error("unexpected")
6969
catch ex
7070
@test isa(ex, LibGit2.Error.GitError)
71-
@test ex.code == LibGit2.Error.ERROR
71+
# Return code seems to vary, see #32186, #32219
72+
@test ex.code (LibGit2.Error.EAUTH, LibGit2.Error.ERROR)
7273
end
7374
Base.shred!(cred)
7475
end

0 commit comments

Comments
 (0)