From cca109eb7714db6217732bb2528719662080620e Mon Sep 17 00:00:00 2001 From: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com> Date: Wed, 12 Apr 2023 07:28:51 -0500 Subject: [PATCH] Prometheus: Query cache flakey tests (#66366) Fix flaky tests --- .../app/plugins/datasource/prometheus/language_provider.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/prometheus/language_provider.test.ts b/public/app/plugins/datasource/prometheus/language_provider.test.ts index dbe70fb8a0e..b751647be22 100644 --- a/public/app/plugins/datasource/prometheus/language_provider.test.ts +++ b/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);