diff --git a/src/runtime/debug/garbage_test.go b/src/runtime/debug/garbage_test.go index acc781ebdc..2110f90824 100644 --- a/src/runtime/debug/garbage_test.go +++ b/src/runtime/debug/garbage_test.go @@ -135,7 +135,7 @@ func TestSetGCPercent(t *testing.T) { t.Fatalf("failed to set up baseline live heap; got %d MB, want %d MB", ms.Alloc>>20, baseline>>20) } // NextGC should be ~200 MB. - const thresh = 10 << 20 + const thresh = 20 << 20 // TODO: Figure out why this is so noisy on some builders if want := int64(2 * baseline); abs64(want-int64(ms.NextGC)) > thresh { t.Errorf("NextGC = %d MB, want %d±%d MB", ms.NextGC>>20, want>>20, thresh>>20) }