File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Symfony/Component/Process/Tests Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ public function testProcessThrowsExceptionWhenExternallySignaled()
645
645
}
646
646
$ this ->skipIfNotEnhancedSigchild (false );
647
647
648
- $ process = $ this ->getProcess (self ::$ phpBin .' -r "while (true) usleep(100); " ' );
648
+ $ process = $ this ->getProcess (self ::$ phpBin .' -r "sleep(32.1) " ' );
649
649
$ process ->start ();
650
650
posix_kill ($ process ->getPid (), 9 ); // SIGKILL
651
651
@@ -729,9 +729,8 @@ public function testCheckTimeoutOnStartedProcess()
729
729
$ this ->fail ('A RuntimeException should have been raised ' );
730
730
} catch (RuntimeException $ e ) {
731
731
}
732
- $ duration = microtime (true ) - $ start ;
733
732
734
- $ this ->assertLessThan (3 , $ duration );
733
+ $ this ->assertLessThan (15 , microtime ( true ) - $ start );
735
734
736
735
throw $ e ;
737
736
}
You can’t perform that action at this time.
0 commit comments