Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Sep 29, 2020
1 parent 6b8a614 commit c497979
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions x-pack/plugins/task_manager/server/task_pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,9 @@ describe('TaskPool', () => {

const result = await pool.run([mockTask(), taskFailedToRun, mockTask()]);

expect(logger.debug.mock.calls[0]).toMatchInlineSnapshot(`
Array [
"Task TaskType \\"shooooo\\" failed in attempt to run: Saved object [task/foo] not found",
]
`);
expect(logger.debug).toHaveBeenCalledWith(
'Task TaskType "shooooo" failed in attempt to run: Saved object [task/foo] not found'
);
expect(logger.warn).not.toHaveBeenCalled();

expect(result).toEqual(TaskPoolRunResult.RunningAllClaimedTasks);
Expand Down

0 comments on commit c497979

Please sign in to comment.