From aebe405680aedbebb95240467d2c05c4f4fad279 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 8 Apr 2019 18:29:45 -0700 Subject: [PATCH] test: disable TestAddAddrsProfile when the race detector is enabled --- p2p/protocol/identify/obsaddr_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/p2p/protocol/identify/obsaddr_test.go b/p2p/protocol/identify/obsaddr_test.go index 8d2e8c0e23..12bdb54a8f 100644 --- a/p2p/protocol/identify/obsaddr_test.go +++ b/p2p/protocol/identify/obsaddr_test.go @@ -5,6 +5,7 @@ import ( "testing" "time" + detectrace "github.com/ipfs/go-detect-race" net "github.com/libp2p/go-libp2p-net" ma "github.com/multiformats/go-multiaddr" ) @@ -120,6 +121,9 @@ func TestObsAddrSet(t *testing.T) { } func TestAddAddrsProfile(b *testing.T) { + if detectrace.WithRace() { + b.Skip("test too slow when the race detector is running") + } m := func(s string) ma.Multiaddr { m, err := ma.NewMultiaddr(s) if err != nil {