We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8a614 commit c497979Copy full SHA for c497979
x-pack/plugins/task_manager/server/task_pool.test.ts
@@ -130,11 +130,9 @@ describe('TaskPool', () => {
130
131
const result = await pool.run([mockTask(), taskFailedToRun, mockTask()]);
132
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
- `);
+ expect(logger.debug).toHaveBeenCalledWith(
+ 'Task TaskType "shooooo" failed in attempt to run: Saved object [task/foo] not found'
+ );
138
expect(logger.warn).not.toHaveBeenCalled();
139
140
expect(result).toEqual(TaskPoolRunResult.RunningAllClaimedTasks);
0 commit comments