tstest: take testing.TB in helper for benchmarks
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
committed by
David Crawshaw
parent
468bb3afce
commit
3baa084548
+1
-1
@@ -39,7 +39,7 @@ func goroutineDump() (int, string) {
|
|||||||
return p.Count(), b.String()
|
return p.Count(), b.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *ResourceCheck) Assert(t *testing.T) {
|
func (r *ResourceCheck) Assert(t testing.TB) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
want := r.startNumRoutines
|
want := r.startNumRoutines
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user