This repository was archived by the owner on Apr 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -1013,21 +1013,21 @@ mod tests {
10131013 assert_eq ! ( rx. recv_timeout( Duration :: from_millis( 500 ) ) . unwrap( ) , 0 ) ;
10141014 assert_eq ! ( f1( ) , 0 ) ;
10151015 }
1016- }
10171016
1018- // TODO: move it to test.rs, once tracing-test is fixed
1019- # [ test ]
1020- # [ tracing_test :: traced_test ]
1021- #[ cfg_attr( not( feature = "failpoints" ) , ignore) ]
1022- fn test_failpoints_print ( ) {
1023- let f = || {
1024- failpoint ! ( "print" ) ;
1025- } ;
1026- crate :: cfg ( "print" , "print(msg)" ) . unwrap ( ) ;
1027- f ( ) ;
1028- assert ! ( logs_contain( "msg" ) ) ;
1017+ // TODO: move it to test.rs, once tracing-test is fixed
1018+ # [ tracing_test :: traced_test ]
1019+ # [ test ]
1020+ #[ cfg_attr( not( feature = "failpoints" ) , ignore) ]
1021+ fn test_failpoints_print ( ) {
1022+ let f = || {
1023+ failpoint ! ( "print" ) ;
1024+ } ;
1025+ crate :: cfg ( "print" , "print(msg)" ) . unwrap ( ) ;
1026+ f ( ) ;
1027+ assert ! ( logs_contain( "msg" ) ) ;
10291028
1030- crate :: cfg ( "print" , "print" ) . unwrap ( ) ;
1031- f ( ) ;
1032- assert ! ( logs_contain( "failpoint print executed." ) ) ;
1029+ crate :: cfg ( "print" , "print" ) . unwrap ( ) ;
1030+ f ( ) ;
1031+ assert ! ( logs_contain( "failpoint print executed." ) ) ;
1032+ }
10331033}
You can’t perform that action at this time.
0 commit comments