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) }