File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -343,11 +343,11 @@ fn deep_dependencies_trigger_rebuild() {
343
343
//
344
344
// We base recompilation off mtime, so sleep for at least a second to ensure
345
345
// that this write will change the mtime.
346
- sleep_ms ( 1000 ) ;
347
346
File :: create ( & p. root ( ) . join ( "baz/src/baz.rs" ) )
348
347
. unwrap ( )
349
348
. write_all ( br#"pub fn baz() { println!("hello!"); }"# )
350
349
. unwrap ( ) ;
350
+ sleep_ms ( 1000 ) ;
351
351
p. cargo ( "build" )
352
352
. with_stderr ( & format ! (
353
353
"[COMPILING] baz v0.5.0 ({}/baz)\n \
@@ -361,7 +361,6 @@ fn deep_dependencies_trigger_rebuild() {
361
361
) ) . run ( ) ;
362
362
363
363
// Make sure an update to bar doesn't trigger baz
364
- sleep_ms ( 1000 ) ;
365
364
File :: create ( & p. root ( ) . join ( "bar/src/bar.rs" ) )
366
365
. unwrap ( )
367
366
. write_all (
@@ -370,6 +369,7 @@ fn deep_dependencies_trigger_rebuild() {
370
369
pub fn bar() { println!("hello!"); baz::baz(); }
371
370
"# ,
372
371
) . unwrap ( ) ;
372
+ sleep_ms ( 1000 ) ;
373
373
p. cargo ( "build" )
374
374
. with_stderr ( & format ! (
375
375
"[COMPILING] bar v0.5.0 ({}/bar)\n \
You can’t perform that action at this time.
0 commit comments