Skip to content

Commit 506f409

Browse files
committed
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 #13970. Note that Windows does things slightly differently, and doesn't need adjustment.
1 parent fd78487 commit 506f409

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
@@ -33,7 +33,7 @@ fn self_signed_should_fail() {
3333
.build();
3434
// I think the text here depends on the curl backend.
3535
let err_msg = if cfg!(target_os = "macos") {
36-
"untrusted connection error; class=Ssl (16); code=Certificate (-17)"
36+
"untrusted connection error; class=Ssl (16)[..]"
3737
} else if cfg!(unix) {
3838
"the SSL certificate is invalid; class=Ssl (16)[..]"
3939
} else if cfg!(windows) {

0 commit comments

Comments
 (0)