From 98ba3ddd02b542ad4ad04475ade62e9d69240238 Mon Sep 17 00:00:00 2001 From: Matt Boersma Date: Mon, 6 Feb 2023 16:49:30 -0700 Subject: [PATCH] Add 30s timeout to test helper SSH config --- test/e2e/helpers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/helpers.go b/test/e2e/helpers.go index 33d7973ee5d..9f2c1594c4e 100644 --- a/test/e2e/helpers.go +++ b/test/e2e/helpers.go @@ -75,6 +75,7 @@ const ( deleteOperationTimeout = 20 * time.Minute retryableOperationTimeout = 30 * time.Second retryableOperationSleepBetweenRetries = 3 * time.Second + sshConnectionTimeout = 30 * time.Second ) // deploymentsClientAdapter adapts a Deployment to work with WaitForDeploymentsAvailable. @@ -533,6 +534,7 @@ func newSSHConfig() (*ssh.ClientConfig, error) { HostKeyCallback: ssh.InsecureIgnoreHostKey(), //nolint:gosec // Non-production code User: azure.DefaultUserName, Auth: []ssh.AuthMethod{pubkey}, + Timeout: sshConnectionTimeout, } return &sshConfig, nil }