Skip to content

Commit 40a387c

Browse files
committed
Use correct version of cargo in test
1 parent 805f424 commit 40a387c

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

Diff for: tests/testsuite/cargo_remove/offline/mod.rs

+1-4
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)