1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Make test more resilient on slow windows CI

This commit is contained in:
Jordi Boggiano 2022-04-01 11:27:13 +02:00
parent 17de5f78a3
commit 9a42f69a99
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC

View file

@ -128,8 +128,9 @@ class ProcessExecutorTest extends TestCase
$this->assertEquals(1, $process->countActiveJobs());
$promise->cancel();
$this->assertEquals(0, $process->countActiveJobs());
$process->wait();
$end = microtime(true);
$this->assertTrue($end - $start < 0.5, 'Canceling took longer than it should, lasted '.($end - $start));
$this->assertTrue($end - $start < 2, 'Canceling took longer than it should, lasted '.($end - $start));
}
/**