Skip to content

Commit 33a2efd

Browse files
authored
Merge pull request #589 from prometheus/beorn/test2
Unflake TestGoCollectorGC
2 parents b46e6ec + c818d96 commit 33a2efd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

prometheus/go_collector_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ func TestGoCollectorGC(t *testing.T) {
138138
close(waitCh)
139139
continue
140140
}
141-
if diff := *pb.GetSummary().SampleCount - oldGC; diff != 1 {
142-
t.Errorf("want 1 new garbage collection run, got %d", diff)
141+
if diff := *pb.GetSummary().SampleCount - oldGC; diff < 1 {
142+
t.Errorf("want at least 1 new garbage collection run, got %d", diff)
143143
}
144144
if diff := *pb.GetSummary().SampleSum - oldPause; diff <= 0 {
145-
t.Errorf("want moar pause, got %f", diff)
145+
t.Errorf("want an increase in pause time, got a change of %f", diff)
146146
}
147147
case <-time.After(1 * time.Second):
148148
t.Fatalf("expected collect timed out")

0 commit comments

Comments
 (0)