Skip to content

Commit

Permalink
Fix https::self_signed_should_fail for macos
Browse files Browse the repository at this point in the history
This no longer generates the same error message for the same reason that
it changed for linux in #13970.

Note that Windows does things slightly differently, and doesn't need
adjustment.
  • Loading branch information
ehuss committed Jan 4, 2025
1 parent fd78487 commit 506f409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/https.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 506f409

Please sign in to comment.