Skip to content

Commit 942e367

Browse files
committed
fix unit test
1 parent 493919c commit 942e367

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/testsuite/install.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,9 +1262,6 @@ fn install_ignores_cargo_config() {
12621262
.file("src/main.rs", "fn main() {}")
12631263
.build();
12641264

1265-
assert_that(
1266-
cargo_process("install").arg("bar").cwd(p.root()),
1267-
execs().with_status(0),
1268-
);
1269-
assert_that(cargo_home(), has_installed_exe("bar"));
1265+
cargo_process("install bar").cwd(p.root()).with_status(0).run();
1266+
assert_has_installed_exe(cargo_home(), "bar");
12701267
}

0 commit comments

Comments
 (0)