Skip to content

Commit

Permalink
mock implementation to account for math flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Nov 17, 2020
1 parent 48231c8 commit bc33cb2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
import { getPingHistogram } from '../get_ping_histogram';
import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../common/constants';
import { elasticsearchServiceMock } from '../../../../../../../src/core/server/mocks';
import * as intervalHelper from '../../helper/get_histogram_interval';

describe('getPingHistogram', () => {
beforeEach(() => {
jest.spyOn(intervalHelper, 'getHistogramInterval').mockReturnValue(36000);
});

const standardMockResponse: any = {
aggregations: {
timeseries: {
Expand Down

0 comments on commit bc33cb2

Please sign in to comment.