Skip to content

Commit e8ad597

Browse files
committed
test(git): Verify corrupted checkout is fixed
1 parent f189581 commit e8ad597

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/testsuite/git.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,9 +3881,11 @@ fn _corrupted_checkout(with_cli: bool) {
38813881
));
38823882
let dep1_co_path = dep1_co_paths.next().unwrap().unwrap();
38833883
let dep1_ok = dep1_co_path.join(".cargo-ok");
3884+
let dep1_manifest = dep1_co_path.join("Cargo.toml");
38843885

38853886
// Deleting this file simulates an interrupted checkout.
38863887
t!(fs::remove_file(&dep1_ok));
3888+
t!(fs::remove_file(&dep1_manifest));
38873889

38883890
// This should refresh the checkout.
38893891
let mut e = p.cargo("fetch");
@@ -3892,6 +3894,7 @@ fn _corrupted_checkout(with_cli: bool) {
38923894
}
38933895
e.run();
38943896
assert!(dep1_ok.exists());
3897+
assert!(dep1_manifest.exists());
38953898
}
38963899

38973900
#[cargo_test]

0 commit comments

Comments
 (0)