Skip to content

Commit 27f9a67

Browse files
committed
runtime: increase repeat count for alloc test
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>
1 parent b68cebd commit 27f9a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/iface_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestCmpIfaceConcreteAlloc(t *testing.T) {
6060
t.Skip("skipping on non-gc compiler")
6161
}
6262

63-
n := testing.AllocsPerRun(1, func() {
63+
n := testing.AllocsPerRun(100, func() {
6464
_ = e == ts
6565
_ = i1 == ts
6666
_ = e == 1

0 commit comments

Comments
 (0)