Skip to content

Commit

Permalink
Make test less restrictive
Browse files Browse the repository at this point in the history
Test depended on ordering of connections in the pool, which is not guarenteed.
  • Loading branch information
trowski committed Dec 24, 2020
1 parent 8d57ecc commit cf4b981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/PoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function testConnectionClosedInPool(int $count)
$result = new CommandResult(0, 0);

foreach ($processors as $processor) {
$processor->expects($this->exactly(2))
$processor->expects($this->atLeastOnce())
->method('query')
->with($query)
->willReturn(new Delayed(10, $result));
Expand Down

0 comments on commit cf4b981

Please sign in to comment.