Browse Source

mock: reduce peer count in FuzzManyPeers when the race detector is enabled

pull/549/head
Steven Allen 6 years ago
parent
commit
5b643cde2d
  1. 6
      p2p/net/mock/mock_test.go

6
p2p/net/mock/mock_test.go

@ -586,7 +586,11 @@ func TestLimitedStreams(t *testing.T) {
}
}
func TestFuzzManyPeers(t *testing.T) {
for i := 0; i < 50000; i++ {
peerCount := 50000
if detectrace.WithRace() {
peerCount = 1000
}
for i := 0; i < peerCount; i++ {
_, err := FullMeshConnected(context.Background(), 2)
if err != nil {
t.Fatal(err)

Loading…
Cancel
Save