diff --git a/src/internal/synctest/synctest_test.go b/src/internal/synctest/synctest_test.go index 8b2ade5630..2e1393591f 100644 --- a/src/internal/synctest/synctest_test.go +++ b/src/internal/synctest/synctest_test.go @@ -710,7 +710,7 @@ func TestHappensBefore(t *testing.T) { // https://go.dev/issue/73817 func TestWeak(t *testing.T) { synctest.Run(func() { - for range 100 { + for range 5 { runtime.GC() b := make([]byte, 1024) weak.Make(&b)