Skip to content

Commit a188955

Browse files
neildgopherbot
authored andcommitted
context: skip allocs test with -asan
Allocates more with -asan after CL 653795. Change-Id: Ib8cc1de1d649623713b6fc123c1c59a47528857b Reviewed-on: https://go-review.googlesource.com/c/go/+/654876 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent 3705a6f commit a188955

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/context/x_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
. "context"
99
"errors"
1010
"fmt"
11+
"internal/asan"
1112
"math/rand"
1213
"runtime"
1314
"strings"
@@ -264,6 +265,9 @@ func TestValues(t *testing.T) {
264265
}
265266

266267
func TestAllocs(t *testing.T) {
268+
if asan.Enabled {
269+
t.Skip("test allocates more with -asan")
270+
}
267271
bg := Background()
268272
for _, test := range []struct {
269273
desc string

0 commit comments

Comments
 (0)