Skip to content

Commit

Permalink
retries
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhaley committed Dec 18, 2024
1 parent 68bffa2 commit e698331
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/alternat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func TestAlternat(t *testing.T) {
retry.DoWithRetry(t, fmt.Sprintf("Check SSH connection to %s", ip), maxRetries, waitTime, func() (string, error) {
return "", ssh.CheckSshConnectionE(t, natInstance)
})

command := "/usr/sbin/nft list ruleset"

expectedText := `table ip nat {
Expand All @@ -146,7 +147,7 @@ func TestAlternat(t *testing.T) {
}
}`

maxRetries = 1
maxRetries = 5
waitTime = 10 * time.Second
retry.DoWithRetry(t, fmt.Sprintf("SSH to NAT instance at IP %s", ip), maxRetries, waitTime, func() (string, error) {
actualText, err := ssh.CheckSshCommandE(t, natInstance, command)
Expand Down

0 comments on commit e698331

Please sign in to comment.