From 3877d1197d5ba4f69a130de3d362f279661ac996 Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Wed, 26 Jun 2024 19:16:12 +0000 Subject: [PATCH] use StartNode, not StartNodes --- tests/local/network.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/local/network.go b/tests/local/network.go index 5c7cae454..2f58b7beb 100644 --- a/tests/local/network.go +++ b/tests/local/network.go @@ -471,9 +471,15 @@ func (n *LocalNetwork) AddSubnetValidators(ctx context.Context, subnetID ids.ID, Expect(err).Should(BeNil()) nodes := subnetEvmTestUtils.NewTmpnetNodes(int(count)) - err = n.tmpnet.StartNodes(ctx, os.Stdout, nodes...) - Expect(err).Should(BeNil()) - + ctx, _ = context.WithTimeout(ctx, 30*time.Second) + for _, node := range nodes { + err = n.tmpnet.StartNode(ctx, os.Stdout, node) + Expect(err).Should(BeNil()) + } + for _, node := range nodes { + err = tmpnet.WaitForHealthy(ctx, node) + Expect(err).Should(BeNil()) + } err = subnet.AddValidators( ctx, os.Stdout,