Skip to content

Commit

Permalink
Fix broken health test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Jul 28, 2021
1 parent 3d33710 commit f8ca173
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 f8ca173

Please sign in to comment.