Use t.Helper in testutil/retry

pull/8514/head
Daniel Nephin 2020-08-14 16:54:44 -04:00
parent bb6737dc60
commit 587dcebfca
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,8 @@ import (
// Failer is an interface compatible with testing.T.
type Failer interface {
Helper()
// Log is called for the final test output
Log(args ...interface{})
@ -116,6 +118,7 @@ func dedup(a []string) string {
func run(r Retryer, t Failer, f func(r *R)) {
rr := &R{}
fail := func() {
t.Helper()
out := dedup(rr.output)
if out != "" {
t.Log(out)