Skip to content

Commit

Permalink
Auto merge of #12097 - ehuss:fix-self_signed_should_fail, r=weihanglo
Browse files Browse the repository at this point in the history
Fix self_signed_should_fail for macOS.

I'm not sure what exactly happened in #11928, but that PR changed this error text in what I think is an incorrect way. At least, I cannot reproduce what happened. The original text seems to be correct and this PR restores it to the original text which works correctly on my systems.
  • Loading branch information
bors committed May 6, 2023
2 parents 754ae9c + a2ed96d commit 5409b7f
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 @@ -30,7 +30,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") {
"unexpected return value from ssl handshake -9806; class=Ssl (16)"
"untrusted connection error; class=Ssl (16); code=Certificate (-17)"
} else if cfg!(unix) {
"the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)"
} else if cfg!(windows) {
Expand Down

0 comments on commit 5409b7f

Please sign in to comment.