mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
lib/promscrape: fix failing tests after a906b3862f
This commit is contained in:
parent
a906b3862f
commit
32869e4c0f
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user