Skip to content

Commit ee80dd1

Browse files
fix the retry logic in ssh in test framework
1 parent c13d336 commit ee80dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/ssh/ssh.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func runSSHCommand(cmd, user, host string, signer ssh.Signer) (string, string, i
244244
err = wait.Poll(5*time.Second, 20*time.Second, func() (bool, error) {
245245
fmt.Printf("error dialing %s@%s: '%v', retrying\n", user, host, err)
246246
if client, err = ssh.Dial("tcp", host, config); err != nil {
247-
return false, err
247+
return false, nil // retrying, error will be logged above
248248
}
249249
return true, nil
250250
})

0 commit comments

Comments
 (0)