From 506f409a2e046606a9e95d3b9245bae997ff7fba Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 4 Jan 2025 11:19:35 -0800 Subject: [PATCH] Fix https::self_signed_should_fail for macos This no longer generates the same error message for the same reason that it changed for linux in https://github.com/rust-lang/cargo/pull/13970. Note that Windows does things slightly differently, and doesn't need adjustment. --- tests/testsuite/https.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {