mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
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.
This commit is contained in:
parent
fd784878cf
commit
506f409a2e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user