lib/promscrape: fix tests after f0c21b6300

This commit is contained in:
Aliaksandr Valialkin 2021-05-28 01:32:50 +03:00
parent d088923aef
commit a52a20659a

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)