diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2017-01-09 17:50:17 +0000 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2017-01-09 17:58:58 +0000 |
| commit | 3829ba2e710553893faf6336cc6b2f3fc17a293e (patch) | |
| tree | ac3f508f7ad6c10d9ff2a8b7a036a1ebbd48dc4e /tests | |
| parent | a5cf255b471ad7113247d552d5695db0cb720882 (diff) | |
| download | libgit2-3829ba2e710553893faf6336cc6b2f3fc17a293e.tar.gz | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/online/badssl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/online/badssl.c b/tests/online/badssl.c index f3470f6d7..6dacc18b6 100644 --- a/tests/online/badssl.c +++ b/tests/online/badssl.c @@ -70,6 +70,8 @@ void test_online_badssl__old_cipher(void) if (!g_has_ssl) cl_skip(); - cl_git_fail(git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", NULL)); - cl_git_fail(git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", &opts)); + cl_git_fail_with(GIT_ECERTIFICATE, + git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", NULL)); + cl_git_fail_with(GIT_ECERTIFICATE, + git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", &opts)); } |
