diff --git a/retrieval/target_test.go b/retrieval/target_test.go index 4550a5621..a64c9ac53 100644 --- a/retrieval/target_test.go +++ b/retrieval/target_test.go @@ -195,7 +195,9 @@ func TestTargetScrapeMetricRelabelConfigs(t *testing.T) { } appender := &collectResultAppender{} - testTarget.scrape(appender) + if err := testTarget.scrape(appender); err != nil { + t.Fatal(err) + } // Remove variables part of result. for _, sample := range appender.result {