mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network/stream: cleanup for PR
This commit is contained in:
parent
83ecad8ce7
commit
750845fcd9
3 changed files with 2 additions and 10 deletions
|
|
@ -841,7 +841,7 @@ func (net *Network) snapshot(addServices []string, removeServices []string) (*Sn
|
|||
}
|
||||
|
||||
// longrunning tests may need a longer timeout
|
||||
var snapshotLoadTimeout = 7200 * time.Second
|
||||
var snapshotLoadTimeout = 900 * time.Second
|
||||
|
||||
// Load loads a network snapshot
|
||||
func (net *Network) Load(snap *Snapshot) error {
|
||||
|
|
|
|||
|
|
@ -534,14 +534,6 @@ func testDeliveryFromNodes(t *testing.T, nodes, chunkCount int, skipCheck bool)
|
|||
return err
|
||||
}
|
||||
|
||||
log.Debug("Waiting for kademlia")
|
||||
// TODO this does not seem to be correct usage of the function, as the simulation may have no kademlias
|
||||
/*
|
||||
if _, err := sim.WaitTillHealthy(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
*/
|
||||
|
||||
//get the pivot node's filestore
|
||||
item, ok := sim.NodeItem(pivot, bucketKeyFileStore)
|
||||
if !ok {
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ func TestRetrieval(t *testing.T) {
|
|||
chnkCnt := []int{32}
|
||||
|
||||
if *longrunning {
|
||||
nodeCnt = []int{16, 32, 128}
|
||||
nodeCnt = []int{16, 32, 64}
|
||||
chnkCnt = []int{4, 32, 256}
|
||||
} else if testutil.RaceEnabled {
|
||||
nodeCnt = []int{4}
|
||||
|
|
|
|||
Loading…
Reference in a new issue