From 2385ac11c08374aff33f7f6bc11aafba8ddcbeff Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 29 Nov 2020 01:04:54 +0200 Subject: [PATCH] lib/promscrape: fix failing tests after a906b3862fa481a0c236c4ef35ff8bd451b999a2 --- lib/promscrape/scrapework_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/promscrape/scrapework_test.go b/lib/promscrape/scrapework_test.go index 9d1e54f92b..861b77f39d 100644 --- a/lib/promscrape/scrapework_test.go +++ b/lib/promscrape/scrapework_test.go @@ -65,7 +65,7 @@ func TestScrapeWorkScrapeInternalFailure(t *testing.T) { pushDataCalls++ } - timestamp := int64(123) + timestamp := int64(123000) if err := sw.scrapeInternal(timestamp, timestamp); err == nil { t.Fatalf("expecting non-nil error") } @@ -112,7 +112,7 @@ func TestScrapeWorkScrapeInternalSuccess(t *testing.T) { } } - timestamp := int64(123) + timestamp := int64(123000) if err := sw.scrapeInternal(timestamp, timestamp); err != nil { t.Fatalf("unexpected error: %s", err) }