Fix broken health test (#107036)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Chris Roberson 2021-07-30 15:18:56 -04:00 committed by GitHub
parent 7aef1be90d
commit caee1257f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),