Skip to content

Commit

Permalink
Fix broken health test (elastic#107036)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
2 people authored and vadimkibana committed Aug 8, 2021
1 parent bef580f commit 3d46ac2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions x-pack/plugins/task_manager/server/routes/health.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 3d46ac2

Please sign in to comment.