Skip to content

Commit c497979

Browse files
committed
Fix test failures
1 parent 6b8a614 commit c497979

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

x-pack/plugins/task_manager/server/task_pool.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,9 @@ describe('TaskPool', () => {
130130

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

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

140138
expect(result).toEqual(TaskPoolRunResult.RunningAllClaimedTasks);

0 commit comments

Comments
 (0)