diff --git a/tests/testsuite/alt_registry.rs b/tests/testsuite/alt_registry.rs index e95f2cbaabb..1fef04e3ae4 100644 --- a/tests/testsuite/alt_registry.rs +++ b/tests/testsuite/alt_registry.rs @@ -1572,7 +1572,11 @@ or use environment variable CARGO_REGISTRIES_ALTERNATIVE_TOKEN", ) .run(); + let crates_io = registry::RegistryBuilder::new() + .no_configure_token() + .build(); p.cargo("publish --registry crates-io") + .replace_crates_io(crates_io.index_url()) .with_status(101) .with_stderr( "\ diff --git a/tests/testsuite/install.rs b/tests/testsuite/install.rs index 89d40ada954..ef3f4f3ae60 100644 --- a/tests/testsuite/install.rs +++ b/tests/testsuite/install.rs @@ -1981,7 +1981,7 @@ fn install_ignores_unstable_table_in_local_cargo_config() { fn install_global_cargo_config() { pkg("bar", "0.0.1"); - let config = cargo_home().join("config"); + let config = cargo_home().join("config.toml"); let mut toml = fs::read_to_string(&config).unwrap_or_default(); toml.push_str( @@ -1994,6 +1994,7 @@ fn install_global_cargo_config() { cargo_process("install bar") .with_status(101) + .with_stderr_contains("[INSTALLING] bar v0.0.1") .with_stderr_contains("[..]--target nonexistent[..]") .run(); }