From 587dcebfcac0e9abe29a7bd55174d77fc33a9cb7 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Fri, 14 Aug 2020 16:54:44 -0400 Subject: [PATCH] Use t.Helper in testutil/retry --- sdk/testutil/retry/retry.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/testutil/retry/retry.go b/sdk/testutil/retry/retry.go index 53c05a2b05..603c47346a 100644 --- a/sdk/testutil/retry/retry.go +++ b/sdk/testutil/retry/retry.go @@ -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)