From f8ca17383a0e87178b5454824c4a6bd19a1f9bda Mon Sep 17 00:00:00 2001 From: chrisronline Date: Wed, 28 Jul 2021 11:18:27 -0400 Subject: [PATCH] Fix broken health test --- x-pack/plugins/task_manager/server/routes/health.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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),