Prometheus: Fix flaky unit test (#66188)

Fix flaky unit test
k8s-proof-of-concept^2
Galen Kistler 2 years ago committed by GitHub
parent ce00465d9b
commit 6ab7ed0f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/plugins/datasource/prometheus/language_utils.test.ts

@ -249,7 +249,7 @@ describe('getRangeSnapInterval', () => {
it('will snap range to closest minute', () => {
const queryDurationMinutes = 10;
const intervalSeconds = queryDurationMinutes * 60; // 10 minutes
const now = new Date().valueOf();
const now = 1680901009826;
const nowPlusOneMinute = now + 1000 * 60;
const nowPlusTwoMinute = now + 1000 * 60 * 2;

Loading…
Cancel
Save