swarm/network/stream: less nodes for snapshot longrunning tests

This commit is contained in:
Fabio Barone 2019-02-28 19:28:51 -05:00
parent 14eaab69ea
commit 211255aed7
2 changed files with 9 additions and 7 deletions

View file

@ -53,8 +53,8 @@ func TestFileRetrieval(t *testing.T) {
nodeCount = []int{16} nodeCount = []int{16}
if *longrunning { if *longrunning {
nodeCount = append(nodeCount, 32, 64, 128) //nodeCount = append(nodeCount, 32, 64, 128)
//nodeCount = append(nodeCount, 32, 64) nodeCount = append(nodeCount, 48)
} else if testutil.RaceEnabled { } else if testutil.RaceEnabled {
nodeCount = []int{4} nodeCount = []int{4}
} }
@ -87,8 +87,10 @@ func TestRetrieval(t *testing.T) {
chnkCnt := []int{32} chnkCnt := []int{32}
if *longrunning { if *longrunning {
nodeCnt = []int{16, 32, 128} //nodeCnt = []int{16, 32, 128}
chnkCnt = []int{4, 32, 256} nodeCnt = []int{32, 48}
chnkCnt = []int{64, 128}
//chnkCnt = []int{4, 32, 256}
} else if testutil.RaceEnabled { } else if testutil.RaceEnabled {
nodeCnt = []int{4} nodeCnt = []int{4}
chnkCnt = []int{4} chnkCnt = []int{4}

View file

@ -94,9 +94,9 @@ func TestSyncingViaGlobalSync(t *testing.T) {
//if the `longrunning` flag has been provided //if the `longrunning` flag has been provided
//run more test combinations //run more test combinations
if *longrunning { if *longrunning {
chunkCounts = []int{1, 8, 32, 256, 1024} chunkCounts = []int{64, 128}
nodeCounts = []int{16, 32, 64, 128, 256} //nodeCounts = []int{16, 32, 64, 128, 256}
//nodeCounts = []int{16, 32, 64} nodeCounts = []int{32, 48}
} }
for _, chunkCount := range chunkCounts { for _, chunkCount := range chunkCounts {