diff --git a/x-pack/plugins/task_manager/server/routes/health.test.ts b/x-pack/plugins/task_manager/server/routes/health.test.ts index 68913fef43a2a..01c1d6a5f3983 100644 --- a/x-pack/plugins/task_manager/server/routes/health.test.ts +++ b/x-pack/plugins/task_manager/server/routes/health.test.ts @@ -29,8 +29,7 @@ jest.mock('../lib/log_health_metrics', () => ({ logHealthMetrics: jest.fn(), })); -// FLAKY: https://github.com/elastic/kibana/issues/106388 -describe.skip('healthRoute', () => { +describe('healthRoute', () => { beforeEach(() => { jest.resetAllMocks(); }); @@ -161,7 +160,7 @@ describe.skip('healthRoute', () => { summarizeMonitoringStats(warnWorkloadStat, getTaskManagerConfig({})) ), }); - expect(logHealthMetrics.mock.calls[2][0]).toMatchObject({ + expect(logHealthMetrics.mock.calls[3][0]).toMatchObject({ id, timestamp: expect.any(String), status: expect.any(String), @@ -234,7 +233,7 @@ describe.skip('healthRoute', () => { summarizeMonitoringStats(errorWorkloadStat, getTaskManagerConfig({})) ), }); - expect(logHealthMetrics.mock.calls[2][0]).toMatchObject({ + expect(logHealthMetrics.mock.calls[3][0]).toMatchObject({ id, timestamp: expect.any(String), status: expect.any(String),