This test should pass if we have tried to update registry evan if the command otherwise fails

This commit is contained in:
Eh2406 2018-03-02 08:49:42 -05:00
parent 2fa4fdf7f3
commit d9c97debbb

View File

@ -88,7 +88,7 @@ fn no_index_update() {
.build(); .build();
assert_that(p.cargo("generate-lockfile"), assert_that(p.cargo("generate-lockfile"),
execs().with_status(0).with_stdout("") execs().with_stdout("")
.with_stderr_contains(" Updating registry `https://github.com/rust-lang/crates.io-index`")); .with_stderr_contains(" Updating registry `https://github.com/rust-lang/crates.io-index`"));
assert_that(p.cargo("generate-lockfile").masquerade_as_nightly_cargo().arg("-Zno-index-update"), assert_that(p.cargo("generate-lockfile").masquerade_as_nightly_cargo().arg("-Zno-index-update"),