diff --git a/x-pack/plugins/task_manager/server/task_pool.test.ts b/x-pack/plugins/task_manager/server/task_pool.test.ts index a174af71ef18f..95768bb2f1afa 100644 --- a/x-pack/plugins/task_manager/server/task_pool.test.ts +++ b/x-pack/plugins/task_manager/server/task_pool.test.ts @@ -92,7 +92,7 @@ describe('TaskPool', () => { ] `); - expect(result).toEqual(TaskPoolRunResult.RunningAllClaimedTasks); + expect(result).toEqual(TaskPoolRunResult.RunningAtCapacity); }); test('should log when running a Task fails', async () => { @@ -242,7 +242,7 @@ describe('TaskPool', () => { }, ]); - expect(result).toEqual(TaskPoolRunResult.RunningAllClaimedTasks); + expect(result).toEqual(TaskPoolRunResult.RunningAtCapacity); expect(pool.occupiedWorkers).toEqual(2); expect(pool.availableWorkers).toEqual(0);