p2p/simulations: increased snapshot load timeout for debugging

This commit is contained in:
Fabio Barone 2019-02-28 17:17:44 -05:00
parent 729bf365b5
commit 14eaab69ea
3 changed files with 3 additions and 1 deletions

View file

@ -840,7 +840,7 @@ func (net *Network) snapshot(addServices []string, removeServices []string) (*Sn
return snap, nil return snap, nil
} }
var snapshotLoadTimeout = 120 * time.Second var snapshotLoadTimeout = 6000 * time.Second
// Load loads a network snapshot // Load loads a network snapshot
func (net *Network) Load(snap *Snapshot) error { func (net *Network) Load(snap *Snapshot) error {

View file

@ -54,6 +54,7 @@ func TestFileRetrieval(t *testing.T) {
if *longrunning { if *longrunning {
nodeCount = append(nodeCount, 32, 64, 128) nodeCount = append(nodeCount, 32, 64, 128)
//nodeCount = append(nodeCount, 32, 64)
} else if testutil.RaceEnabled { } else if testutil.RaceEnabled {
nodeCount = []int{4} nodeCount = []int{4}
} }

View file

@ -96,6 +96,7 @@ func TestSyncingViaGlobalSync(t *testing.T) {
if *longrunning { if *longrunning {
chunkCounts = []int{1, 8, 32, 256, 1024} chunkCounts = []int{1, 8, 32, 256, 1024}
nodeCounts = []int{16, 32, 64, 128, 256} nodeCounts = []int{16, 32, 64, 128, 256}
//nodeCounts = []int{16, 32, 64}
} }
for _, chunkCount := range chunkCounts { for _, chunkCount := range chunkCounts {