diff --git a/prometheus/go_collector_test.go b/prometheus/go_collector_test.go index b75d28e..d3d52cd 100644 --- a/prometheus/go_collector_test.go +++ b/prometheus/go_collector_test.go @@ -50,6 +50,10 @@ func TestGoCollector(t *testing.T) { t.Errorf("want 1 new goroutine, got %d", diff) } + // GoCollector performs two sends per call. + // On line 27 we need to revceive the second send + // to shutdown cleanly. + <-ch return } case <-time.After(1 * time.Second):