Skip to content

Commit 66678cb

Browse files
committed
test: expect a HTTPError like we throw now
1 parent 0cda0ff commit 66678cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/online/fetch_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_fetch_over_https_with_certificate_callback
4848
def test_fetch_over_https_with_certificate_callback_fail
4949
@repo.remotes.create("origin", "https://github.com/libgit2/TestGitRepository.git")
5050

51-
exception = assert_raises Rugged::NetworkError do
51+
exception = assert_raises Rugged::HTTPError do
5252
@repo.fetch("origin", {
5353
certificate_check: lambda { |valid, host| false }
5454
})

0 commit comments

Comments
 (0)