mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/swarm/swarm-snapshot: extended timeout to 3 mins, or 256 nodes snapshot times out
This commit is contained in:
parent
1ab3017d6c
commit
9f6cbd858b
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ func createSnapshot(filename string, nodes int, services []string) (err error) {
|
||||||
return fmt.Errorf("connect nodes: %v", err)
|
return fmt.Errorf("connect nodes: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, cancelSimRun := context.WithTimeout(context.Background(), 2*time.Minute)
|
ctx, cancelSimRun := context.WithTimeout(context.Background(), 3*time.Minute)
|
||||||
defer cancelSimRun()
|
defer cancelSimRun()
|
||||||
if _, err := sim.WaitTillHealthy(ctx); err != nil {
|
if _, err := sim.WaitTillHealthy(ctx); err != nil {
|
||||||
return fmt.Errorf("wait for healthy kademlia: %v", err)
|
return fmt.Errorf("wait for healthy kademlia: %v", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue