mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 15:16:42 +00:00
lib/promscrape: fix tests after f0c21b6300
This commit is contained in:
parent
6865f3b497
commit
0b9f0de0a1
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue