Skip to content

Commit 1c82fe4

Browse files
committed
test(git): Prefer check over build for faster tests
If check passes, it should be sufficient.
1 parent 4cc7ff5 commit 1c82fe4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/testsuite/git_shallow.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,12 @@ fn perform_two_revs_same_deps(mode: RepoMode) {
9898
.build();
9999

100100
let args = match mode {
101-
RepoMode::Complete => "build -v",
102-
RepoMode::Shallow => "build -v -Zgitoxide=fetch -Zgit=shallow-deps",
101+
RepoMode::Complete => "check -v",
102+
RepoMode::Shallow => "check -v -Zgitoxide=fetch -Zgit=shallow-deps",
103103
};
104104
foo.cargo(args)
105105
.masquerade_as_nightly_cargo(&["gitoxide=fetch", "git=shallow-deps"])
106106
.run();
107-
assert!(foo.bin("foo").is_file());
108-
foo.process(&foo.bin("foo")).run();
109107
}
110108

111109
#[cargo_test]

0 commit comments

Comments
 (0)