lib/promscrape: fix tests after f0c21b6300

This commit is contained in:
Aliaksandr Valialkin 2021-05-28 01:32:50 +03:00
parent 6865f3b497
commit 0b9f0de0a1

View file

@ -115,7 +115,9 @@ func TestScrapeWorkScrapeInternalSuccess(t *testing.T) {
timestamp := int64(123000)
if err := sw.scrapeInternal(timestamp, timestamp); err != nil {
t.Fatalf("unexpected error: %s", err)
if !strings.Contains(err.Error(), "sample_limit") {
t.Fatalf("unexpected error: %s", err)
}
}
if pushDataErr != nil {
t.Fatalf("unexpected error: %s", pushDataErr)