Skip to content

Commit 3829ba2

Browse files
committed
http: correct the expected error for RC4
We must make sure that we're getting a certificate error from the library so we know that we're testing the right thing.
1 parent a5cf255 commit 3829ba2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/online/badssl.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ void test_online_badssl__old_cipher(void)
7070
if (!g_has_ssl)
7171
cl_skip();
7272

73-
cl_git_fail(git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", NULL));
74-
cl_git_fail(git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", &opts));
73+
cl_git_fail_with(GIT_ECERTIFICATE,
74+
git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", NULL));
75+
cl_git_fail_with(GIT_ECERTIFICATE,
76+
git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", &opts));
7577
}

0 commit comments

Comments
 (0)