Skip to content

Commit

Permalink
Auto merge of #11193 - cassaundra:wrong-cargo-test, r=ehuss
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Oct 8, 2022
2 parents 882c5dd + 40a387c commit 8743325
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/testsuite/cargo_remove/offline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use cargo_test_support::compare::assert_ui;
use cargo_test_support::curr_dir;
use cargo_test_support::CargoCommand;
use cargo_test_support::Project;
use cargo_test_support::TestEnv;

use crate::cargo_remove::init_registry;

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

// run the metadata command to populate the cache
let cargo = std::env::var_os("CARGO").unwrap();
snapbox::cmd::Command::new(cargo)
.test_env()
snapbox::cmd::Command::cargo_ui()
.arg("metadata")
.current_dir(cwd)
.assert()
Expand Down

0 comments on commit 8743325

Please sign in to comment.