Skip to content

Commit

Permalink
Allow both EAUTH and ERROR for bad credential test in LibGit2 tests. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored and Keno committed Jun 9, 2019
1 parent c053cf2 commit 7bdba87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/LibGit2/test/online.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7bdba87

Please sign in to comment.