Skip to content

Commit

Permalink
Merge pull request #3158 from mboersma/cherry-pick-3153-release-1.6
Browse files Browse the repository at this point in the history
[release-1.6] Add 30s timeout to test helper SSH config
  • Loading branch information
k8s-ci-robot authored Feb 8, 2023
2 parents d2952be + 98ba3dd commit 2e98b81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 2e98b81

Please sign in to comment.