Skip to content

Commit

Permalink
speed up the mock tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed May 18, 2021
1 parent 4239830 commit a2a1df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/net/mock/mock_test.go
Expand Up @@ -593,14 +593,14 @@ func TestLimitedStreams(t *testing.T) {
}
}
func TestFuzzManyPeers(t *testing.T) {
peerCount := 50000
peerCount := 500
if detectrace.WithRace() {
peerCount = 100
}
for i := 0; i < peerCount; i++ {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
_, err := FullMeshConnected(ctx, 2)
cancel()
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit a2a1df2

Please sign in to comment.