diff --git a/retrieval/scrape_test.go b/retrieval/scrape_test.go index 4d2c13e91..8aa5da2fe 100644 --- a/retrieval/scrape_test.go +++ b/retrieval/scrape_test.go @@ -210,7 +210,7 @@ func TestScrapePoolReload(t *testing.T) { mtx.Lock() if len(stopped) != numTargets { - t.Fatalf("Expected 20 stopped loops, got %d", stopped) + t.Fatalf("Expected 20 stopped loops, got %d", len(stopped)) } mtx.Unlock()