Skip to content

Commit

Permalink
Add 30s timeout to test helper SSH config
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Feb 8, 2023
1 parent d2952be commit 98ba3dd
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 98ba3dd

Please sign in to comment.