mock: reduce peer count in FuzzManyPeers when the race detector is enabled
@@ -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)
