File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3873,25 +3873,25 @@ fn _corrupted_checkout(with_cli: bool) {
3873
3873
3874
3874
p. cargo ( "fetch" ) . run ( ) ;
3875
3875
3876
- let mut paths = t ! ( glob:: glob(
3876
+ let mut dep1_co_paths = t ! ( glob:: glob(
3877
3877
paths:: home( )
3878
3878
. join( ".cargo/git/checkouts/dep1-*/*" )
3879
3879
. to_str( )
3880
3880
. unwrap( )
3881
3881
) ) ;
3882
- let path = paths . next ( ) . unwrap ( ) . unwrap ( ) ;
3883
- let ok = path . join ( ".cargo-ok" ) ;
3882
+ let dep1_co_path = dep1_co_paths . next ( ) . unwrap ( ) . unwrap ( ) ;
3883
+ let dep1_ok = dep1_co_path . join ( ".cargo-ok" ) ;
3884
3884
3885
3885
// Deleting this file simulates an interrupted checkout.
3886
- t ! ( fs:: remove_file( & ok ) ) ;
3886
+ t ! ( fs:: remove_file( & dep1_ok ) ) ;
3887
3887
3888
3888
// This should refresh the checkout.
3889
3889
let mut e = p. cargo ( "fetch" ) ;
3890
3890
if with_cli {
3891
3891
e. env ( "CARGO_NET_GIT_FETCH_WITH_CLI" , "true" ) ;
3892
3892
}
3893
3893
e. run ( ) ;
3894
- assert ! ( ok . exists( ) ) ;
3894
+ assert ! ( dep1_ok . exists( ) ) ;
3895
3895
}
3896
3896
3897
3897
#[ cargo_test]
You can’t perform that action at this time.
0 commit comments