Skip to content

Commit

Permalink
test(core): Fix other search e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 14, 2024
1 parent 78eff02 commit b4a773f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/core/e2e/default-search-plugin-uuids.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ describe('Default search plugin with UUIDs', () => {
// rebuild is not completed in time for the first test.
await new Promise(resolve => setTimeout(resolve, 5000));

// We have extra time here because a lot of jobs are
// triggered from all the product updates
await awaitRunningJobs(adminClient, 10_000, 1000);

const { facets } = await adminClient.query<GetFacetListQuery, GetFacetListQueryVariables>(
GET_FACET_LIST,
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ describe('Elasticsearch plugin with UuidIdStrategy', () => {
customerCount: 1,
});
await adminClient.asSuperAdmin();
// We have extra time here because a lot of jobs are
// triggered from all the product updates
await awaitRunningJobs(adminClient, 10_000, 1000);
await adminClient.query(REINDEX);
await awaitRunningJobs(adminClient);
}, TEST_SETUP_TIMEOUT_MS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ describe('Elasticsearch plugin', () => {
customerCount: 1,
});
await adminClient.asSuperAdmin();
await awaitRunningJobs(adminClient);
// We have extra time here because a lot of jobs are
// triggered from all the product updates
await awaitRunningJobs(adminClient, 10_000, 1000);
await adminClient.query(REINDEX);
await awaitRunningJobs(adminClient);
}, TEST_SETUP_TIMEOUT_MS);
Expand Down

0 comments on commit b4a773f

Please sign in to comment.