From bf6b88867d514ea61e18252bbe684513ac7eb16d Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Fri, 27 Jan 2023 23:44:41 -0700 Subject: [PATCH] integration-tests: Wait for initial SSH to succeed --- integration-tests/tools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-tests/tools.nix b/integration-tests/tools.nix index 3c59120..a1f5df8 100644 --- a/integration-tests/tools.nix +++ b/integration-tests/tools.nix @@ -91,7 +91,7 @@ let ${lib.optionalString (length targets != 0) '' for node in ${targetList}: node.wait_for_unit("sshd.service") - deployer.succeed(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true", timeout=30) + deployer.wait_until_succeeds(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true", timeout=30) ''} deployer.succeed("cp --no-preserve=mode -r ${bundle} /tmp/bundle && chmod u+w /tmp/bundle")