Skip to content

Commit 13df98d

Browse files
committed
test: retry create & drop search index
1 parent 371f43d commit 13df98d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/cbjs/tests/search.spec.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ describe
6161
collection,
6262
});
6363

64-
await useSearchIndex(indexConfig, { waitSearchIndexTimeout: 0 });
64+
await waitFor(
65+
async () => {
66+
await useSearchIndex(indexConfig, { waitSearchIndexTimeout: 0 });
67+
},
68+
{ timeout: 21_000, retryInterval: 5_000 }
69+
);
6570
});
6671

6772
test(

0 commit comments

Comments
 (0)