From 211255aed76b1cb6ce0ac369c95f384eec6c3ea3 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Thu, 28 Feb 2019 19:28:51 -0500 Subject: [PATCH] swarm/network/stream: less nodes for snapshot longrunning tests --- swarm/network/stream/snapshot_retrieval_test.go | 10 ++++++---- swarm/network/stream/snapshot_sync_test.go | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/swarm/network/stream/snapshot_retrieval_test.go b/swarm/network/stream/snapshot_retrieval_test.go index 806277c3c2..2e73dc480d 100644 --- a/swarm/network/stream/snapshot_retrieval_test.go +++ b/swarm/network/stream/snapshot_retrieval_test.go @@ -53,8 +53,8 @@ func TestFileRetrieval(t *testing.T) { nodeCount = []int{16} if *longrunning { - nodeCount = append(nodeCount, 32, 64, 128) - //nodeCount = append(nodeCount, 32, 64) + //nodeCount = append(nodeCount, 32, 64, 128) + nodeCount = append(nodeCount, 48) } else if testutil.RaceEnabled { nodeCount = []int{4} } @@ -87,8 +87,10 @@ func TestRetrieval(t *testing.T) { chnkCnt := []int{32} if *longrunning { - nodeCnt = []int{16, 32, 128} - chnkCnt = []int{4, 32, 256} + //nodeCnt = []int{16, 32, 128} + nodeCnt = []int{32, 48} + chnkCnt = []int{64, 128} + //chnkCnt = []int{4, 32, 256} } else if testutil.RaceEnabled { nodeCnt = []int{4} chnkCnt = []int{4} diff --git a/swarm/network/stream/snapshot_sync_test.go b/swarm/network/stream/snapshot_sync_test.go index 09c6a98fda..303950414b 100644 --- a/swarm/network/stream/snapshot_sync_test.go +++ b/swarm/network/stream/snapshot_sync_test.go @@ -94,9 +94,9 @@ func TestSyncingViaGlobalSync(t *testing.T) { //if the `longrunning` flag has been provided //run more test combinations if *longrunning { - chunkCounts = []int{1, 8, 32, 256, 1024} - nodeCounts = []int{16, 32, 64, 128, 256} - //nodeCounts = []int{16, 32, 64} + chunkCounts = []int{64, 128} + //nodeCounts = []int{16, 32, 64, 128, 256} + nodeCounts = []int{32, 48} } for _, chunkCount := range chunkCounts {