Skip to content

Commit 42e3d61

Browse files
authored
Merge pull request #3157 from mboersma/cherry-pick-3153-release-1.7
[release-1.7] Add 30s timeout to test helper SSH config
2 parents 7f6d6c2 + 320cc28 commit 42e3d61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e/helpers.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const (
7878
retryableOperationTimeout = 30 * time.Second
7979
retryableDeleteOperationTimeout = 3 * time.Minute
8080
retryableOperationSleepBetweenRetries = 3 * time.Second
81+
sshConnectionTimeout = 30 * time.Second
8182
)
8283

8384
// deploymentsClientAdapter adapts a Deployment to work with WaitForDeploymentsAvailable.
@@ -587,6 +588,7 @@ func newSSHConfig() (*ssh.ClientConfig, error) {
587588
HostKeyCallback: ssh.InsecureIgnoreHostKey(), //nolint:gosec // Non-production code
588589
User: azure.DefaultUserName,
589590
Auth: []ssh.AuthMethod{pubkey},
591+
Timeout: sshConnectionTimeout,
590592
}
591593
return &sshConfig, nil
592594
}

0 commit comments

Comments
 (0)