8000 [Process] fixed some volatile tests · symfony/symfony@00c1b75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 00c1b75

Browse files
committed
[Process] fixed some volatile tests
1 parent 974bf01 commit 00c1b75

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/Process/Tests/AbstractProcessTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ public function testStopWithTimeoutIsActuallyWorking()
7777
while ($p->isRunning()) {
7878
usleep(1000);
7979
}
80-
$duration = microtime(true) - $start;
8180

82-
$this->assertLessThan(1.8, $duration);
81+
$this->assertLessThan(4, microtime(true) - $start);
8382
}
8483

8584
public function testAllOutputIsActuallyReadOnTermination()
@@ -396,7 +395,7 @@ public function testStartIsNonBlocking()
396395
$start = microtime(true);
397396
$process->start();
398397
$end = microtime(true);
399-
$this->assertLessThan(0.2, $end-$start);
398+
$this->assertLessThan(1, $end - $start);
400399
$process->wait();
401400
}
402401

0 commit comments

Comments
 (0)
0