forked from mirror/client_golang
Merge pull request #589 from prometheus/beorn/test2
Unflake TestGoCollectorGC
This commit is contained in:
commit
33a2efdc9c
|
@ -138,11 +138,11 @@ func TestGoCollectorGC(t *testing.T) {
|
||||||
close(waitCh)
|
close(waitCh)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if diff := *pb.GetSummary().SampleCount - oldGC; diff != 1 {
|
if diff := *pb.GetSummary().SampleCount - oldGC; diff < 1 {
|
||||||
t.Errorf("want 1 new garbage collection run, got %d", diff)
|
t.Errorf("want at least 1 new garbage collection run, got %d", diff)
|
||||||
}
|
}
|
||||||
if diff := *pb.GetSummary().SampleSum - oldPause; diff <= 0 {
|
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):
|
case <-time.After(1 * time.Second):
|
||||||
t.Fatalf("expected collect timed out")
|
t.Fatalf("expected collect timed out")
|
||||||
|
|
Loading…
Reference in New Issue