Skip to content

Commit

Permalink
Refinements before first release πŸŽ‰ (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk authored Jun 20, 2019
1 parent c6ab7ba commit 7f5c37c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p2p/host/eventbus/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
"testing"
"time"

"github.com/jbenet/go-detect-race"
"github.com/libp2p/go-libp2p-testing/race"
)

type EventA struct{}
type EventB int

func getN() int {
n := 50000
if detectrace.WithRace() {
if race.WithRace() {
n = 1000
}
return n
Expand Down Expand Up @@ -305,7 +305,7 @@ func TestStateful(t *testing.T) {
}

func testMany(t testing.TB, subs, emits, msgs int, stateful bool) {
if detectrace.WithRace() && subs+emits > 5000 {
if race.WithRace() && subs+emits > 5000 {
t.SkipNow()
}

Expand Down

0 comments on commit 7f5c37c

Please sign in to comment.