]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: increase repeat count for alloc test
authorKeith Randall <khr@golang.org>
Wed, 15 Oct 2025 20:28:15 +0000 (13:28 -0700)
committerKeith Randall <khr@golang.org>
Wed, 15 Oct 2025 22:23:22 +0000 (15:23 -0700)
To make sure a single spurious alloc doesn't flake the test.

Fixes #75858

Change-Id: I055b37ad5668459bfa7ab1dac97025c997c68f1a
Reviewed-on: https://go-review.googlesource.com/c/go/+/712201
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/runtime/iface_test.go

index 06f6eeb95246379a336e39dd2e16856dfff16cf2..5bc209cfcf0dc72894a427411cbcdaf7cc89f8d9 100644 (file)
@@ -60,7 +60,7 @@ func TestCmpIfaceConcreteAlloc(t *testing.T) {
                t.Skip("skipping on non-gc compiler")
        }
 
-       n := testing.AllocsPerRun(1, func() {
+       n := testing.AllocsPerRun(100, func() {
                _ = e == ts
                _ = i1 == ts
                _ = e == 1