File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ Caused by:
332
332
}
333
333
334
334
#[ cargo_test]
335
- fn update_offline ( ) {
335
+ fn update_offline_not_cached ( ) {
336
336
let p = project ( )
337
337
. file (
338
338
"Cargo.toml" ,
@@ -350,7 +350,15 @@ fn update_offline() {
350
350
. build ( ) ;
351
351
p. cargo ( "update --offline" )
352
352
. with_status ( 101 )
353
- . with_stderr ( "error: you can't update in the offline mode[..]" )
353
+ . with_stderr (
354
+ "\
355
+ [ERROR] no matching package named `bar` found
356
+ location searched: registry `[..]`
357
+ required by package `foo v0.0.1 ([..]/foo)`
358
+ As a reminder, you're using offline mode (--offline) which can sometimes cause \
359
+ surprising resolution failures, if this error is too confusing you may wish to \
360
+ retry without the offline flag.",
361
+ )
354
362
. run ( ) ;
355
363
}
356
364
@@ -564,7 +572,7 @@ fn offline_with_all_patched() {
564
572
}
565
573
566
574
#[ cargo_test]
567
- fn offline_update ( ) {
575
+ fn update_offline_cached ( ) {
568
576
// Cache a few versions to update against
569
577
let p = project ( ) . file ( "src/lib.rs" , "" ) . build ( ) ;
570
578
let versions = [ "1.2.3" , "1.2.5" , "1.2.9" ] ;
You can’t perform that action at this time.
0 commit comments