diff --git a/tests/testsuite/https.rs b/tests/testsuite/https.rs index 1f347e90239..d81a51ee44e 100644 --- a/tests/testsuite/https.rs +++ b/tests/testsuite/https.rs @@ -33,7 +33,7 @@ fn self_signed_should_fail() { .build(); // I think the text here depends on the curl backend. let err_msg = if cfg!(target_os = "macos") { - "untrusted connection error; class=Ssl (16); code=Certificate (-17)" + "untrusted connection error; class=Ssl (16)[..]" } else if cfg!(unix) { "the SSL certificate is invalid; class=Ssl (16)[..]" } else if cfg!(windows) {