diff --git a/retrieval/scrape_test.go b/retrieval/scrape_test.go index 8aa5da2fec..bb641d4cd3 100644 --- a/retrieval/scrape_test.go +++ b/retrieval/scrape_test.go @@ -329,7 +329,7 @@ func TestScrapeLoopStop(t *testing.T) { runDone := make(chan struct{}) go func() { - sl.run(0, 0, nil) + sl.run(1, 0, nil) close(runDone) }()