We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b46e6ec + c818d96 commit 33a2efdCopy full SHA for 33a2efd
prometheus/go_collector_test.go
@@ -138,11 +138,11 @@ func TestGoCollectorGC(t *testing.T) {
138
close(waitCh)
139
continue
140
}
141
- if diff := *pb.GetSummary().SampleCount - oldGC; diff != 1 {
142
- 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)
143
144
if diff := *pb.GetSummary().SampleSum - oldPause; diff <= 0 {
145
- t.Errorf("want moar pause, got %f", diff)
+ t.Errorf("want an increase in pause time, got a change of %f", diff)
146
147
case <-time.After(1 * time.Second):
148
t.Fatalf("expected collect timed out")
0 commit comments