diff --git a/x-pack/plugins/infra/public/metrics_overview_fetchers.ts b/x-pack/plugins/infra/public/metrics_overview_fetchers.ts
index 7511433765cd6..4eaf903e17608 100644
--- a/x-pack/plugins/infra/public/metrics_overview_fetchers.ts
+++ b/x-pack/plugins/infra/public/metrics_overview_fetchers.ts
@@ -5,7 +5,6 @@
*/
import { isFinite, isNumber, sum } from 'lodash';
-import moment from 'moment';
import { FetchDataParams, MetricsFetchDataResponse } from '../../observability/public';
import {
SnapshotMetricInput,
diff --git a/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx b/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx
index ff1550097f796..7b9d7276dd1c5 100644
--- a/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx
+++ b/x-pack/plugins/observability/public/components/app/section/apm/index.test.tsx
@@ -8,6 +8,7 @@ import * as fetcherHook from '../../../../hooks/use_fetcher';
import { render } from '../../../../utils/test_helper';
import { APMSection } from './';
import { response } from './mock_data/apm.mock';
+import moment from 'moment';
describe('APMSection', () => {
it('renders with transaction series and stats', () => {
@@ -18,7 +19,10 @@ describe('APMSection', () => {
});
const { getByText, queryAllByTestId } = render(
@@ -38,7 +42,10 @@ describe('APMSection', () => {
});
const { getByText, queryAllByText, getByTestId } = render(
diff --git a/x-pack/plugins/observability/public/data_handler.test.ts b/x-pack/plugins/observability/public/data_handler.test.ts
index 286aedaa197a5..7170ffe1486dc 100644
--- a/x-pack/plugins/observability/public/data_handler.test.ts
+++ b/x-pack/plugins/observability/public/data_handler.test.ts
@@ -4,11 +4,12 @@
* you may not use this file except in compliance with the Elastic License.
*/
import { registerDataHandler, getDataHandler } from './data_handler';
+import moment from 'moment';
const params = {
absoluteTime: {
- start: '2020-07-02T13:25:11.629Z',
- end: '2020-07-09T13:25:11.629Z',
+ start: moment('2020-07-02T13:25:11.629Z').valueOf(),
+ end: moment('2020-07-09T13:25:11.629Z').valueOf(),
},
relativeTime: {
start: 'now-15m',