Skip to content

Commit

Permalink
Merge pull request #373 from ml054/flacky
Browse files Browse the repository at this point in the history
fixing flacky test
  • Loading branch information
ml054 authored May 20, 2023
2 parents b6249fd + 82c7898 commit eaf8dd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Documents/Operations/IndexesOperationsTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ describe("Index operations", function () {
return errors[0].errors.length;
}, 1);

await testContext.waitForValue(async () => {
const errors = await store.maintenance.send(new GetIndexErrorsOperation([indexDef.name]));
return errors[0].errors.length;
}, 1);

const indexErrors = await store.maintenance.send(new GetIndexErrorsOperation());
const perIndexErrors = await store.maintenance.send(new GetIndexErrorsOperation([indexDef.name]));

Expand Down

0 comments on commit eaf8dd4

Please sign in to comment.