From c1dc482c21aeca7a5d0f41ded80b52d904efcebe Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Fri, 13 May 2022 19:14:58 -0700 Subject: [PATCH] integration-tests: Add timeouts to SSH invocations They occasionally become stuck, similar to NixOS/nixpkgs#171488. --- 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 85d25aa..8c67732 100644 --- a/integration-tests/tools.nix +++ b/integration-tests/tools.nix @@ -145,7 +145,7 @@ let for node in ${targetList}: node.wait_for_unit("sshd.service") - deployer.succeed(f"ssh -o StrictHostKeyChecking=accept-new {node.name} true") + deployer.succeed(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")