Use general cl_git_fail because the error is generic
diff --git a/tests/online/badssl.c b/tests/online/badssl.c
index 141f22f..66b090d 100644
--- a/tests/online/badssl.c
+++ b/tests/online/badssl.c
@@ -42,6 +42,5 @@ void test_online_badssl__old_cipher(void)
if (!g_has_ssl)
cl_skip();
- cl_git_fail_with(GIT_ERROR,
- 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", NULL));
}