File tree 1 file changed +16
-21
lines changed
1 file changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -2401,7 +2401,7 @@ fn rebuild_on_mid_build_file_modification() {
2401
2401
let server = TcpListener :: bind ( "127.0.0.1:0" ) . unwrap ( ) ;
2402
2402
let addr = server. local_addr ( ) . unwrap ( ) ;
2403
2403
2404
- let p = project ( "p" )
2404
+ let p = project ( )
2405
2405
. file (
2406
2406
"Cargo.toml" ,
2407
2407
r#"
@@ -2480,29 +2480,24 @@ fn rebuild_on_mid_build_file_modification() {
2480
2480
drop ( server. accept ( ) . unwrap ( ) ) ;
2481
2481
} ) ;
2482
2482
2483
- assert_that (
2484
- p. cargo ( "build" ) ,
2485
- execs ( ) . stream ( ) . with_status ( 0 )
2486
- // .with_stderr(&format!(
2487
- // "\
2488
- //[COMPILING] proc_macro_dep v0.1.0 ({url}/proc_macro_dep)
2489
- //[COMPILING] root v0.1.0 ({url}/root)
2490
- //[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
2491
- //",
2492
- // url = p.url()
2493
- // )),
2494
- ) ;
2495
-
2496
- assert_that (
2497
- p. cargo ( "build" ) ,
2498
- execs ( ) . stream ( ) . with_status ( 0 ) . with_stderr ( & format ! (
2483
+ p. cargo ( "build" )
2484
+ . with_stderr (
2499
2485
"\
2500
- [COMPILING] root v0.1.0 ({url}/root)
2486
+ [COMPILING] proc_macro_dep v0.1.0 ([..]/proc_macro_dep)
2487
+ [COMPILING] root v0.1.0 ([..]/root)
2501
2488
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
2502
2489
" ,
2503
- url = p. url( )
2504
- ) ) ,
2505
- ) ;
2490
+ )
2491
+ . run ( ) ;
2492
+
2493
+ p. cargo ( "build" )
2494
+ . with_stderr (
2495
+ "\
2496
+ [COMPILING] root v0.1.0 ([..]/root)
2497
+ [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
2498
+ " ,
2499
+ )
2500
+ . run ( ) ;
2506
2501
2507
2502
t. join ( ) . ok ( ) . unwrap ( ) ;
2508
2503
}
You can’t perform that action at this time.
0 commit comments