util/deephash: skip alloc test under race detector

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/2351/head
Brad Fitzpatrick 3 years ago
parent 6dc38ff25c
commit df176c82f5

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

Loading…
Cancel
Save