Prometheus: Query cache flakey tests (#66366)

Fix flaky tests
pull/66380/head
Galen Kistler 2 years ago committed by GitHub
parent 303777e682
commit cca109eb77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/plugins/datasource/prometheus/language_provider.test.ts

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

Loading…
Cancel
Save