Skip to content

Commit 5409b7f

Browse files
committed
Auto merge of #12097 - ehuss:fix-self_signed_should_fail, r=weihanglo
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.
2 parents 754ae9c + a2ed96d commit 5409b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/https.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn self_signed_should_fail() {
3030
.build();
3131
// I think the text here depends on the curl backend.
3232
let err_msg = if cfg!(target_os = "macos") {
33-
"unexpected return value from ssl handshake -9806; class=Ssl (16)"
33+
"untrusted connection error; class=Ssl (16); code=Certificate (-17)"
3434
} else if cfg!(unix) {
3535
"the SSL certificate is invalid; class=Ssl (16); code=Certificate (-17)"
3636
} else if cfg!(windows) {

0 commit comments

Comments
 (0)