Skip to content

Commit 53b0d77

Browse files
Merge branch '2.3' into 2.7
* 2.3: [Process] Fix transient test on Windows
2 parents 5dc2bb3 + 5517368 commit 53b0d77

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ public function testProcessThrowsExceptionWhenExternallySignaled()
747747
}
748748
$this->skipIfNotEnhancedSigchild(false);
749749

750-
$process = $this->getProcess(self::$phpBin.' -r "while (true) usleep(100);"');
750+
$process = $this->getProcess(self::$phpBin.' -r "sleep(32.1)"');
751751
$process->start();
752752
posix_kill($process->getPid(), 9); // SIGKILL
753753

@@ -831,9 +831,8 @@ public function testCheckTimeoutOnStartedProcess()
831831
$this->fail('A RuntimeException should have been raised');
832832
} catch (RuntimeException $e) {
833833
}
834-
$duration = microtime(true) - $start;
835834

836-
$this->assertLessThan(3, $duration);
835+
$this->assertLessThan(15, microtime(true) - $start);
837836

838837
throw $e;
839838
}

0 commit comments

Comments
 (0)