File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -1333,10 +1333,7 @@ mod tests {
1333
1333
. unwrap_err ( )
1334
1334
. to_string ( ) ;
1335
1335
1336
- assert_eq ! (
1337
- "Generic HTTP client error: builder error: unknown proxy scheme" ,
1338
- err
1339
- ) ;
1336
+ assert_eq ! ( "Generic HTTP client error: builder error" , err) ;
1340
1337
}
1341
1338
1342
1339
#[ test]
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ mod tests {
425
425
}
426
426
427
427
let e = do_request ( ) . await . unwrap_err ( ) . to_string ( ) ;
428
- assert ! ( e. ends_with ( "too many redirects ") , "{}" , e) ;
428
+ assert ! ( e. contains ( "error following redirect for url ") , "{}" , e) ;
429
429
430
430
// Handles redirect missing location
431
431
mock. push (
@@ -489,7 +489,7 @@ mod tests {
489
489
let res = client. request ( Method :: PUT , mock. url ( ) ) . send_retry ( & retry) ;
490
490
let e = res. await . unwrap_err ( ) . to_string ( ) ;
491
491
assert ! (
492
- e. contains( "Error after 0 retries in" ) && e. contains( "operation timed out " ) ,
492
+ e. contains( "Error after 0 retries in" ) && e. contains( "error sending request for url " ) ,
493
493
"{e}"
494
494
) ;
495
495
Original file line number Diff line number Diff line change @@ -594,10 +594,7 @@ mod tests {
594
594
. unwrap_err ( )
595
595
. to_string ( ) ;
596
596
597
- assert_eq ! (
598
- "Generic HTTP client error: builder error: unknown proxy scheme" ,
599
- err
600
- ) ;
597
+ assert_eq ! ( "Generic HTTP client error: builder error" , err) ;
601
598
}
602
599
603
600
#[ test]
You can’t perform that action at this time.
0 commit comments