await TestUtils.waitExits(longRunningPool, max - min)
// Here we expect the workers to be at the max size since that the task is still running
expect(longRunningPool.workers.length).toBe(min)
await TestUtils.waitExits(longRunningPool, max - min)
// Here we expect the workers to be at the max size since that the task is still running
expect(longRunningPool.workers.length).toBe(min)