diff --git a/prometheus/go_collector_test.go b/prometheus/go_collector_test.go index f55aff9..62c5d5c 100644 --- a/prometheus/go_collector_test.go +++ b/prometheus/go_collector_test.go @@ -138,11 +138,11 @@ func TestGoCollectorGC(t *testing.T) { close(waitCh) continue } - if diff := *pb.GetSummary().SampleCount - oldGC; diff != 1 { - t.Errorf("want 1 new garbage collection run, got %d", diff) + if diff := *pb.GetSummary().SampleCount - oldGC; diff < 1 { + t.Errorf("want at least 1 new garbage collection run, got %d", diff) } if diff := *pb.GetSummary().SampleSum - oldPause; diff <= 0 { - t.Errorf("want moar pause, got %f", diff) + t.Errorf("want an increase in pause time, got a change of %f", diff) } case <-time.After(1 * time.Second): t.Fatalf("expected collect timed out")