Skip to content

Commit

Permalink
Fix broken health test (#107036) (#107328)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
chrisronline and kibanamachine authored Jul 30, 2021
1 parent d4a497e commit b3cc00c
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 b3cc00c

Please sign in to comment.