mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
lib/promscrape: fix failing tests after a906b3862f
This commit is contained in:
parent
2ed721e457
commit
2385ac11c0
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ func TestScrapeWorkScrapeInternalFailure(t *testing.T) {
|
||||||
pushDataCalls++
|
pushDataCalls++
|
||||||
}
|
}
|
||||||
|
|
||||||
timestamp := int64(123)
|
timestamp := int64(123000)
|
||||||
if err := sw.scrapeInternal(timestamp, timestamp); err == nil {
|
if err := sw.scrapeInternal(timestamp, timestamp); err == nil {
|
||||||
t.Fatalf("expecting non-nil error")
|
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 {
|
if err := sw.scrapeInternal(timestamp, timestamp); err != nil {
|
||||||
t.Fatalf("unexpected error: %s", err)
|
t.Fatalf("unexpected error: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue