From 9f6cbd858bb0bb40489b1f1f084ac1e735b61780 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Mon, 25 Feb 2019 16:52:10 -0500 Subject: [PATCH] cmd/swarm/swarm-snapshot: extended timeout to 3 mins, or 256 nodes snapshot times out --- cmd/swarm/swarm-snapshot/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/swarm/swarm-snapshot/create.go b/cmd/swarm/swarm-snapshot/create.go index 1b4bef28d9..434561a491 100644 --- a/cmd/swarm/swarm-snapshot/create.go +++ b/cmd/swarm/swarm-snapshot/create.go @@ -89,7 +89,7 @@ func createSnapshot(filename string, nodes int, services []string) (err error) { 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() if _, err := sim.WaitTillHealthy(ctx); err != nil { return fmt.Errorf("wait for healthy kademlia: %v", err)