8000 [Process] Fix transient test on Windows · SCIF/symfony@5517368 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5517368

Browse files
[Process] Fix transient test on Windows
1 parent b598fca commit 5517368

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
@@ -645,7 +645,7 @@ public function testProcessThrowsExceptionWhenExternallySignaled()
645645
}
646646
$this->skipIfNotEnhancedSigchild(false);
647647

648-
$process = $this->getProcess(self::$phpBin.' -r "while (true) usleep(100);"');
648+
$process = $this->getProcess(self::$phpBin.' -r "sleep(32.1)"');
649649
$process->start();
650650
posix_kill($process->getPid(), 9); // SIGKILL
651651

@@ -729,9 +729,8 @@ public function testCheckTimeoutOnStartedProcess()
729729
$this->fail('A RuntimeException should have been raised');
730730
} catch (RuntimeException $e) {
731731
}
732-
$duration = microtime(true) - $start;
733732

734-
$this->assertLessThan(3, $duration);
733+
$this->assertLessThan(15, microtime(true) - $start);
735734

736735
throw $e;
737736
}

0 commit comments

Comments
 (0)
0