Skip to content

Commit c05c902

Browse files
committed
Fix for Integration Test failure
Signed-off-by: Yussuf Shaikh <[email protected]>
1 parent 2a42b46 commit c05c902

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/remote/pi_resources.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,12 @@ func waitForInstanceHealth(insID string, ic *instance.IBMPIInstanceClient) (*mod
271271
// Wait till SSH test is complete.
272272
func waitForInstanceSSH(publicIP string) error {
273273
err := wait.PollUntilContextTimeout(context.Background(), 20*time.Second, 30*time.Minute, true, func(context.Context) (bool, error) {
274-
var err error
275274
outp, err := runRemoteCommand(publicIP, "hostname")
276275
klog.Infof("out: %s err: %v", outp, err)
277276
if err != nil {
278-
return false, err
277+
// Return nil err to retry on failure
278+
_ = err
279+
return false, nil
279280
}
280281
return true, nil
281282
})

0 commit comments

Comments
 (0)