[Process] fixed some volatile tests

This commit is contained in:
Fabien Potencier 2014-09-20 10:00:00 +02:00
parent 974bf01eb3
commit 00c1b759cd
1 changed files with 2 additions and 3 deletions

View File

@ -77,9 +77,8 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
while ($p->isRunning()) {
usleep(1000);
}
$duration = microtime(true) - $start;
$this->assertLessThan(1.8, $duration);
$this->assertLessThan(4, microtime(true) - $start);
}
public function testAllOutputIsActuallyReadOnTermination()
@ -396,7 +395,7 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
$start = microtime(true);
$process->start();
$end = microtime(true);
$this->assertLessThan(0.2, $end-$start);
$this->assertLessThan(1, $end - $start);
$process->wait();
}