Skip to content

Commit 045bbc8

Browse files
committed
test(cli-rustup): remove heal_damaged_toolchain()
1 parent a73bbb0 commit 045bbc8

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

tests/suite/cli_rustup.rs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -932,47 +932,6 @@ async fn list_default_and_override_toolchain() {
932932
.await;
933933
}
934934

935-
#[tokio::test]
936-
async fn heal_damaged_toolchain() {
937-
let mut cx = CliTestContext::new(Scenario::SimpleV2).await;
938-
cx.config.expect_ok(&["rustup", "default", "nightly"]).await;
939-
cx.config
940-
.expect_not_stderr_ok(&["rustup", "which", "rustc"], "syncing channel updates")
941-
.await;
942-
let manifest_path = format!(
943-
"toolchains/nightly-{}/lib/rustlib/multirust-channel-manifest.toml",
944-
this_host_triple()
945-
);
946-
947-
let mut rustc_path = cx.config.rustupdir.join(
948-
[
949-
"toolchains",
950-
&format!("nightly-{}", this_host_triple()),
951-
"bin",
952-
"rustc",
953-
]
954-
.iter()
955-
.collect::<PathBuf>(),
956-
);
957-
958-
if cfg!(windows) {
959-
rustc_path.set_extension("exe");
960-
}
961-
962-
fs::remove_file(cx.config.rustupdir.join(manifest_path)).unwrap();
963-
cx.config
964-
.expect_ok_ex(
965-
&["rustup", "which", "rustc"],
966-
&format!("{}\n", rustc_path.to_str().unwrap()),
967-
for_host!("info: syncing channel updates for 'nightly-{0}'\n"),
968-
)
969-
.await;
970-
cx.config.expect_ok(&["rustup", "default", "nightly"]).await;
971-
cx.config
972-
.expect_stderr_ok(&["rustup", "which", "rustc"], "syncing channel updates")
973-
.await;
974-
}
975-
976935
#[tokio::test]
977936
#[ignore = "FIXME: Windows shows UNC paths"]
978937
async fn show_toolchain_override() {

0 commit comments

Comments
 (0)