mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Make test more resilient on slow windows CI
This commit is contained in:
parent
17de5f78a3
commit
9a42f69a99
1 changed files with 2 additions and 1 deletions
|
@ -128,8 +128,9 @@ class ProcessExecutorTest extends TestCase
|
||||||
$this->assertEquals(1, $process->countActiveJobs());
|
$this->assertEquals(1, $process->countActiveJobs());
|
||||||
$promise->cancel();
|
$promise->cancel();
|
||||||
$this->assertEquals(0, $process->countActiveJobs());
|
$this->assertEquals(0, $process->countActiveJobs());
|
||||||
|
$process->wait();
|
||||||
$end = microtime(true);
|
$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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue