Skip to content

Commit

Permalink
fix: image pull retry logic
Browse files Browse the repository at this point in the history
Signed-off-by: Shubharanshu Mahapatra <[email protected]>
  • Loading branch information
Shubhranshu153 committed Mar 27, 2024
1 parent a25bc55 commit fe2bd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func SetupLocalRegistry(o *option.Option) {
// retry pull for 3 times
var session *gexec.Session
for i := 0; i < retryPull; i++ {
session = command.New(o, "pull", ref).WithTimeoutInSeconds(30).WithoutSuccessfulExit().Run()
session = command.New(o, "pull", ref).WithTimeoutInSeconds(30).WithoutCheckingExitCode().Run()
if session.ExitCode() == 0 {
break
}
Expand Down

0 comments on commit fe2bd64

Please sign in to comment.