Skip to content

Commit 61a8f71

Browse files
committed
Fix offline tests. Rename to cached/not_cached.
1 parent 8ae5472 commit 61a8f71

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/testsuite/offline.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Caused by:
332332
}
333333

334334
#[cargo_test]
335-
fn update_offline() {
335+
fn update_offline_not_cached() {
336336
let p = project()
337337
.file(
338338
"Cargo.toml",
@@ -350,7 +350,15 @@ fn update_offline() {
350350
.build();
351351
p.cargo("update --offline")
352352
.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+
)
354362
.run();
355363
}
356364

@@ -564,7 +572,7 @@ fn offline_with_all_patched() {
564572
}
565573

566574
#[cargo_test]
567-
fn offline_update() {
575+
fn update_offline_cached() {
568576
// Cache a few versions to update against
569577
let p = project().file("src/lib.rs", "").build();
570578
let versions = ["1.2.3", "1.2.5", "1.2.9"];

0 commit comments

Comments
 (0)