diff --git a/src/runtime/callers_test.go b/src/runtime/callers_test.go index 302e33deeb..3cf3fbe5ac 100644 --- a/src/runtime/callers_test.go +++ b/src/runtime/callers_test.go @@ -68,6 +68,8 @@ func testCallers(t *testing.T, pcs []uintptr, pan bool) { } func testCallersEqual(t *testing.T, pcs []uintptr, want []string) { + t.Helper() + got := make([]string, 0, len(want)) frames := runtime.CallersFrames(pcs)