mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network/stream: less nodes for snapshot longrunning tests
This commit is contained in:
parent
14eaab69ea
commit
211255aed7
2 changed files with 9 additions and 7 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue