Skip to content

Commit 1c1c03a

Browse files
committed
cli-v2: Fix up bad-sha test because we now deliberately fail
Signed-off-by: Daniel Silverstone <[email protected]>
1 parent 8472783 commit 1c1c03a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/cli-v2.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,12 @@ fn bad_sha_on_manifest() {
310310
sha_bytes[..10].clone_from_slice(b"aaaaaaaaaa");
311311
let sha_str = String::from_utf8(sha_bytes).unwrap();
312312
rustup::utils::raw::write_file(&sha_file, &sha_str).unwrap();
313-
expect_ok(config, &["rustup", "default", "nightly"]);
313+
// 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+
);
314319
});
315320
}
316321

0 commit comments

Comments
 (0)