diff --git a/src/Symfony/Component/Process/Tests/ProcessTest.php b/src/Symfony/Component/Process/Tests/ProcessTest.php index e91c59e091..7b25b556bc 100644 --- a/src/Symfony/Component/Process/Tests/ProcessTest.php +++ b/src/Symfony/Component/Process/Tests/ProcessTest.php @@ -747,7 +747,7 @@ class ProcessTest extends \PHPUnit_Framework_TestCase } $this->skipIfNotEnhancedSigchild(false); - $process = $this->getProcess(self::$phpBin.' -r "while (true) usleep(100);"'); + $process = $this->getProcess(self::$phpBin.' -r "sleep(32.1)"'); $process->start(); posix_kill($process->getPid(), 9); // SIGKILL @@ -831,9 +831,8 @@ class ProcessTest extends \PHPUnit_Framework_TestCase $this->fail('A RuntimeException should have been raised'); } catch (RuntimeException $e) { } - $duration = microtime(true) - $start; - $this->assertLessThan(3, $duration); + $this->assertLessThan(15, microtime(true) - $start); throw $e; }