@@ -241,7 +241,7 @@ Caused by:
241
241
An IO error occurred when talking to the server
242
242
243
243
Caused by:
244
- [35] SSL connect error (schannel: failed to receive handshake, SSL/TLS connection failed )"
244
+ [35] SSL connect error ([..] )"
245
245
} else if cfg!( windows) {
246
246
r"\
247
247
failed to send request: A connection with the server could not be established
@@ -250,7 +250,7 @@ Caused by:
250
250
// macOS is difficult to tests as some builds may use Security.framework,
251
251
// while others may use OpenSSL. In that case, let's just not verify the error
252
252
// message here.
253
- "[..] "
253
+ "... "
254
254
} else {
255
255
r" SSL [ERROR] syscall failure: ; class=Os (2)"
256
256
}
@@ -302,10 +302,9 @@ fn ssh_something_happens() {
302
302
// "[..]banner exchange: Connection to 127.0.0.1 [..]"
303
303
// banner exchange: Connection to 127.0.0.1 port 62250: Software caused connection abort
304
304
// But since there is no common meaningful sequence or word, we can only match a small telling sequence of characters.
305
- "onnect" . to_string ( )
305
+ "onnect"
306
306
} else {
307
- format ! (
308
- r"
307
+ r"
309
308
Caused by:
310
309
failed to clone into: [ROOT]/home/.cargo/git/db/bar-[HASH]
311
310
@@ -318,11 +317,7 @@ Caused by:
318
317
An IO error occurred when talking to the server
319
318
320
319
Caused by:
321
- Connection closed by {} port {}
322
- " ,
323
- addr. ip( ) ,
324
- addr. port( )
325
- )
320
+ [..]Connection closed by [..]"
326
321
} ;
327
322
format ! (
328
323
"\
@@ -393,9 +388,9 @@ fn net_err_suggests_fetch_with_cli() {
393
388
. with_stderr_data ( format ! (
394
389
"\
395
390
[UPDATING] git repository `ssh://needs-proxy.invalid/git`
396
- [WARNING] spurious network error (3 tries remaining): failed to resolve address for needs-proxy.invalid: Name or service not known; class=Net (12)
397
- [WARNING] spurious network error (2 tries remaining): failed to resolve address for needs-proxy.invalid: Name or service not known; class=Net (12)
398
- [WARNING] spurious network error (1 tries remaining): failed to resolve address for needs-proxy.invalid: Name or service not known; class=Net (12)
391
+ [WARNING] spurious network error (3 tries remaining): [..] resolve [..] needs-proxy.invalid: [..] not known[..]
392
+ [WARNING] spurious network error (2 tries remaining): [..] resolve [..] needs-proxy.invalid: [..] not known[..]
393
+ [WARNING] spurious network error (1 tries remaining): [..] resolve [..] needs-proxy.invalid: [..] not known[..]
399
394
[ERROR] failed to get `foo` as a dependency of package `foo v0.0.0 ([ROOT]/foo)`
400
395
401
396
Caused by:
@@ -419,9 +414,9 @@ Caused by:
419
414
r" An IO error occurred when talking to the server
420
415
421
416
Caused by:
422
- ssh: Could not resolve hostname needs-proxy.invalid"
417
+ ssh: Could not resolve hostname needs-proxy.invalid[..] "
423
418
} else {
424
- " failed to resolve address for needs-proxy.invalid: Name or service not known; class=Net (12)"
419
+ " failed to resolve address for needs-proxy.invalid: [..] not known; class=Net (12)"
425
420
}
426
421
) )
427
422
. run ( ) ;
0 commit comments