diff --git a/retrieval/scrape_test.go b/retrieval/scrape_test.go index ee24547722..b63959767b 100644 --- a/retrieval/scrape_test.go +++ b/retrieval/scrape_test.go @@ -699,7 +699,7 @@ func TestScrapeLoopAppendSampleLimit(t *testing.T) { } value := metric.GetCounter().GetValue() if (value - beforeMetricValue) != 1 { - t.Fatal("Unexpected change of sample limit metric: %f", (value - beforeMetricValue)) + t.Fatalf("Unexpected change of sample limit metric: %f", (value - beforeMetricValue)) } // And verify that we got the samples that fit under the limit.