Skip to content

Commit 085478c

Browse files
authored
Merge pull request #50 from alxsabo/v5.2
fixing flacky test
2 parents 0d07218 + 8f1579c commit 085478c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Documents/Operations/Indexes/IndexOperationsTest/IndexOperationsTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ public function testCanListErrors(): void
281281
return count($store->maintenance()->send(new GetIndexErrorsOperation())[0]->getErrors());
282282
}, 1);
283283

284+
$this->waitForValue(function () use ($store, $indexDef) {
285+
return count($store->maintenance()->send(new GetIndexErrorsOperation([$indexDef->getName()]))[0]->getErrors());
286+
}, 1);
287+
284288
/** @var IndexErrorsArray $indexErrors */
285289
$indexErrors = $store->maintenance()->send(new GetIndexErrorsOperation());
286290
/** @var IndexErrorsArray $indexErrors */

0 commit comments

Comments
 (0)