File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -924,9 +924,10 @@ mod tests {
924924 run_async_test ( || async {
925925 let mut cmd = StdCommand :: new ( "sh" ) ;
926926 // Continuously output numbers for ~2 seconds, sleeping shortly
927+ // cmd.arg("-c")
928+ // .arg("i=0; while [ $i -lt 20 ]; do echo $i; i=$((i+1)); sleep 0.1; done");
927929 cmd. arg ( "-c" )
928- . arg ( "i=0; while [ $i -lt 20 ]; do echo $i; i=$((i+1)); sleep 0.1; done" ) ;
929-
930+ . arg ( "i=0; while [ $i -lt 20 ]; do echo $i; i=$((i+1)); perl -e 'select undef, undef, undef, 0.1'; done" ) ;
930931 let min_timeout = Duration :: from_millis ( 50 ) ;
931932 let max_timeout = Duration :: from_secs ( 10 ) ;
932933 let activity_timeout = Duration :: from_millis ( 500 ) ; // activity > sleep
@@ -948,16 +949,10 @@ mod tests {
948949 result. duration > Duration :: from_secs( 2 ) ,
949950 "Duration should be > 2s"
950951 ) ; // 20 * 0.1s
951- #[ cfg( not( target_os = "macos" ) ) ]
952952 assert ! (
953953 result. duration < Duration :: from_secs( 3 ) ,
954954 "Duration should be < 3s"
955955 ) ;
956- #[ cfg( target_os = "macos" ) ]
957- assert ! (
958- result. duration < Duration :: from_secs( 5 ) ,
959- "Duration should be < 5s"
960- ) ;
961956 } ) ;
962957 }
963958
You can’t perform that action at this time.
0 commit comments