Skip to content
Permalink
Browse files

Reduce the number of queries to test the atomic increment of counters

On heavily loaded CI servers doing that much simultaneous requests
can fail. While we could replay the failed queries they also do
not bring a lot of value to the test so we can achieve the same thing
with less queries.
  • Loading branch information...
LeSuisse committed Sep 25, 2019
1 parent 63c7501 commit bdeab0281d1254b061ebee9eef075d578bb9c3e9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/functionnal/BlackBoxTest.php
@@ -71,7 +71,7 @@ public function countersShouldIncrementAtomically() : void
{
$promises = [];
$sum = 0;
for ($i = 0; $i < 1100; $i++) {
for ($i = 0; $i < 275; $i++) {
$request = $this->requestFactory->createRequest('GET', self::BASE_URI . '/examples/some_counter.php?c=' . $i . '&adapter=' . $this->adapter);
$promises[] = $this->client->sendAsyncRequest($request);
$sum += $i;

0 comments on commit bdeab02

Please sign in to comment.
You can’t perform that action at this time.