Prometheus: Query cache flakey tests (#66366)

Fix flaky tests
This commit is contained in:
Galen Kistler
2023-04-12 07:28:51 -05:00
committed by GitHub
parent 303777e682
commit cca109eb77
@@ -11,7 +11,7 @@ import LanguageProvider from './language_provider';
import { getClientCacheDurationInMinutes, getPrometheusTime, getRangeSnapInterval } from './language_utils';
import { PrometheusCacheLevel, PromQuery } from './types';
const now = new Date().getTime();
const now = new Date(1681300293392).getTime();
const timeRangeDurationSeconds = 1;
const toPrometheusTime = getPrometheusTime(dateTime(now), false);
const fromPrometheusTime = getPrometheusTime(dateTime(now - timeRangeDurationSeconds * 1000), false);