Skip to content

Commit 9164a31

Browse files
authored
Merge pull request #3153 from mboersma/add-ssh-test-timeout
Add 30s timeout to test helper SSH config
2 parents aee4a08 + 18c6da0 commit 9164a31

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
@@ -76,6 +76,7 @@ const (
7676
retryableDeleteOperationTimeout = 3 * time.Minute
7777
retryableOperationSleepBetweenRetries = 3 * time.Second
7878
helmInstallTimeout = 3 * time.Minute
79+
sshConnectionTimeout = 30 * time.Second
7980
)
8081

8182
// deploymentsClientAdapter adapts a Deployment to work with WaitForDeploymentsAvailable.
@@ -591,6 +592,7 @@ func newSSHConfig() (*ssh.ClientConfig, error) {
591592
HostKeyCallback: ssh.InsecureIgnoreHostKey(), //nolint:gosec // Non-production code
592593
User: azure.DefaultUserName,
593594
Auth: []ssh.AuthMethod{pubkey},
595+
Timeout: sshConnectionTimeout,
594596
}
595597
return &sshConfig, nil
596598
}

0 commit comments

Comments
 (0)