Skip to content

Commit

Permalink
Merge pull request #2671 from cybozu-go/fix-20240910
Browse files Browse the repository at this point in the history
dctest: Fixed wrong use of StopTrying
  • Loading branch information
masa213f authored Sep 11, 2024
2 parents d0ab73c + 4139a11 commit a4122f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dctest/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func execRetryAt(host string, handler retryHandler, args ...string) []byte {
if err != nil {
msg := fmt.Sprintf("stdout: %s, stderr: %s, err: %v", string(stdout), string(stderr), err)
if !handler(string(stdout), string(stderr), err) {
StopTrying("retry skipped. " + msg).Wrap(err)
StopTrying("retry skipped. " + msg).Wrap(err).Now()
}
fmt.Printf("retrying... %v", args)
g.Expect(err).NotTo(BeNil(), "retry failed. "+msg)
Expand Down

0 comments on commit a4122f9

Please sign in to comment.