t.Fatal should be t.Fatalf in the one scrape test

This commit is contained in:
Krasi Georgiev 2018-01-19 12:07:19 +00:00
parent d202718116
commit 66bcb10f40

View file

@ -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.