Skip to content

Commit

Permalink
Merge branch 'minor' into custom-field-struct
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Nov 15, 2024
2 parents a623b4d + b4a773f commit 7ee2e29
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
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
4 changes: 3 additions & 1 deletion packages/core/e2e/default-search-plugin.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ describe('Default search 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);
}, TEST_SETUP_TIMEOUT_MS);

afterAll(async () => {
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 7ee2e29

Please sign in to comment.