We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8472783 commit 1c1c03aCopy full SHA for 1c1c03a
tests/cli-v2.rs
@@ -310,7 +310,12 @@ fn bad_sha_on_manifest() {
310
sha_bytes[..10].clone_from_slice(b"aaaaaaaaaa");
311
let sha_str = String::from_utf8(sha_bytes).unwrap();
312
rustup::utils::raw::write_file(&sha_file, &sha_str).unwrap();
313
- expect_ok(config, &["rustup", "default", "nightly"]);
+ // We fail because the sha is bad, but we should emit the special message to that effect.
314
+ expect_err(
315
+ config,
316
+ &["rustup", "default", "nightly"],
317
+ "update not yet available",
318
+ );
319
});
320
}
321
0 commit comments