Skip to content

Commit 088343e

Browse files
authored
Fix test on Windows CI due to PHPStan Turbo (part 2) (#8868)
1 parent cadfba5 commit 088343e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tests/Bin/RectorTest.php‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public function testParallelTimeoutReportsErrorLimitOnlyWhenReached(
6868
int $previousErrorCount,
6969
array $expectedMessages
7070
): void {
71+
if (PHP_OS_FAMILY === 'Windows') {
72+
// the worker runs in a wrapping cmd.exe, terminating it on timeout leaves the sleeping worker running
73+
$this->markTestSkipped('Terminating a timed out worker is not reliable on Windows');
74+
}
75+
7176
$filePaths = [];
7277
for ($i = 5; $i < 5 + $previousErrorCount; ++$i) {
7378
$filePaths[] = __DIR__ . sprintf('/../../e2e/parallel-system-errors-limit/src/File%02d.php', $i);

0 commit comments

Comments
 (0)