From 3baa084548390d58068bcf5fb442bdd38242d920 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Fri, 4 Sep 2020 07:41:01 -0400 Subject: [PATCH] tstest: take testing.TB in helper for benchmarks Signed-off-by: David Crawshaw --- tstest/resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tstest/resource.go b/tstest/resource.go index f42127747..02e7313c8 100644 --- a/tstest/resource.go +++ b/tstest/resource.go @@ -39,7 +39,7 @@ func goroutineDump() (int, string) { return p.Count(), b.String() } -func (r *ResourceCheck) Assert(t *testing.T) { +func (r *ResourceCheck) Assert(t testing.TB) { t.Helper() want := r.startNumRoutines