Procházet zdrojové kódy

test(core): Fix default search e2e test

Michael Bromley před 1 rokem
rodič
revize
78eff02fc1

+ 3 - 1
packages/core/e2e/default-search-plugin.e2e-spec.ts

@@ -129,7 +129,9 @@ describe('Default search plugin', () => {
             customerCount: 1,
             customerCount: 1,
         });
         });
         await adminClient.asSuperAdmin();
         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);
     }, TEST_SETUP_TIMEOUT_MS);
 
 
     afterAll(async () => {
     afterAll(async () => {