util/deephash: skip alloc test under race detector

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-07-07 11:40:28 -07:00
parent 6dc38ff25c
commit df176c82f5

View File

@ -16,6 +16,7 @@
"inet.af/netaddr"
"tailscale.com/tailcfg"
"tailscale.com/util/dnsname"
"tailscale.com/version"
"tailscale.com/wgengine/router"
"tailscale.com/wgengine/wgcfg"
)
@ -263,6 +264,9 @@ type T struct {
}
func TestArrayAllocs(t *testing.T) {
if version.IsRace() {
t.Skip("skipping test under race detector")
}
type T struct {
X [32]byte
}