Skip to content

Commit eaf8dd4

Browse files
authored
Merge pull request #373 from ml054/flacky
fixing flacky test
2 parents b6249fd + 82c7898 commit eaf8dd4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/Documents/Operations/IndexesOperationsTests.ts

+5
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ describe("Index operations", function () {
234234
return errors[0].errors.length;
235235
}, 1);
236236

237+
await testContext.waitForValue(async () => {
238+
const errors = await store.maintenance.send(new GetIndexErrorsOperation([indexDef.name]));
239+
return errors[0].errors.length;
240+
}, 1);
241+
237242
const indexErrors = await store.maintenance.send(new GetIndexErrorsOperation());
238243
const perIndexErrors = await store.maintenance.send(new GetIndexErrorsOperation([indexDef.name]));
239244

0 commit comments

Comments
 (0)