From 6ccee9329a2fc9d271c92e2975c6bd347a442ad5 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sat, 13 Apr 2019 14:17:07 +0300 Subject: [PATCH] reduce peer count in TestFuzzManyPeers when running under the race detector --- p2p/net/mock/mock_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/net/mock/mock_test.go b/p2p/net/mock/mock_test.go index fa53c16ec5..473e4424df 100644 --- a/p2p/net/mock/mock_test.go +++ b/p2p/net/mock/mock_test.go @@ -588,7 +588,7 @@ func TestLimitedStreams(t *testing.T) { func TestFuzzManyPeers(t *testing.T) { peerCount := 50000 if detectrace.WithRace() { - peerCount = 1000 + peerCount = 100 } for i := 0; i < peerCount; i++ { _, err := FullMeshConnected(context.Background(), 2)