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 @@ -747,7 +747,7 @@ public function testProcessThrowsExceptionWhenExternallySignaled()
747
747
}
748
748
$ this ->skipIfNotEnhancedSigchild (false );
749
749
750
- $ process = $ this ->getProcess (self ::$ phpBin .' -r "while (true) usleep(100); " ' );
750
+ $ process = $ this ->getProcess (self ::$ phpBin .' -r "sleep(32.1) " ' );
751
751
$ process ->start ();
752
752
posix_kill ($ process ->getPid (), 9 ); // SIGKILL
753
753
@@ -831,9 +831,8 @@ public function testCheckTimeoutOnStartedProcess()
831
831
$ this ->fail ('A RuntimeException should have been raised ' );
832
832
} catch (RuntimeException $ e ) {
833
833
}
834
- $ duration = microtime (true ) - $ start ;
835
834
836
- $ this ->assertLessThan (3 , $ duration );
835
+ $ this ->assertLessThan (15 , microtime ( true ) - $ start );
837
836
838
837
throw $ e ;
839
838
}
You can’t perform that action at this time.
0 commit comments