Skip to content

Commit 8743325

Browse files
committed
Auto merge of #11193 - cassaundra:wrong-cargo-test, r=ehuss
Use correct version of cargo in test Fix `cargo_remove::offline` test using wrong version of cargo in test, the local version and calling instance of cargo instead of the one being tested. Issue discovered in #10907 after merge of #11099.
2 parents 882c5dd + 40a387c commit 8743325

File tree

1 file changed

+1
-4
lines changed
  • tests/testsuite/cargo_remove/offline

1 file changed

+1
-4
lines changed

tests/testsuite/cargo_remove/offline/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use cargo_test_support::compare::assert_ui;
22
use cargo_test_support::curr_dir;
33
use cargo_test_support::CargoCommand;
44
use cargo_test_support::Project;
5-
use cargo_test_support::TestEnv;
65

76
use crate::cargo_remove::init_registry;
87

@@ -14,9 +13,7 @@ fn case() {
1413
let cwd = &project_root;
1514

1615
// run the metadata command to populate the cache
17-
let cargo = std::env::var_os("CARGO").unwrap();
18-
snapbox::cmd::Command::new(cargo)
19-
.test_env()
16+
snapbox::cmd::Command::cargo_ui()
2017
.arg("metadata")
2118
.current_dir(cwd)
2219
.assert()

0 commit comments

Comments
 (0)