Browse Source

test(core): Fix error in test helper

Michael Bromley 6 years ago
parent
commit
e026652808
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/e2e/default-search-plugin.e2e-spec.ts

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

@@ -542,7 +542,7 @@ describe('Default search plugin', () => {
         let runningJobs = 0;
         do {
             const { jobs } = await adminClient.query<GetRunningJobs.Query>(GET_RUNNING_JOBS);
-            runningJobs = jobs.filter(job => job.state !== JobState.COMPLETED);
+            runningJobs = jobs.filter(job => job.state !== JobState.COMPLETED).length;
         } while (runningJobs > 0);
     }
 });