From 66bcb10f400f111db271740c9000ac0df4ce2b10 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Fri, 19 Jan 2018 12:07:19 +0000 Subject: [PATCH] t.Fatal should be t.Fatalf in the one scrape test --- retrieval/scrape_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retrieval/scrape_test.go b/retrieval/scrape_test.go index ee2454772..b63959767 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.