Skip to content

Commit

Permalink
test: disable TestAddAddrsProfile when the race detector is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Apr 9, 2019
1 parent a7eb2ef commit 4e48292
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions p2p/protocol/identify/obsaddr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -120,6 +121,9 @@ func TestObsAddrSet(t *testing.T) {
}

func TestAddAddrsProfile(b *testing.T) {
if detectrace.WithRace() {
t.Skip("test too slow when the race detector is running")
}
m := func(s string) ma.Multiaddr {
m, err := ma.NewMultiaddr(s)
if err != nil {
Expand Down

0 comments on commit 4e48292

Please sign in to comment.