From 77af7e54362fefe8125b6a4e1a9cd6aa595fdcd6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 10 Mar 2020 17:32:38 -0700 Subject: [PATCH] wgengine/magicsock: mark test logfunc as a helper. Signed-off-by: David Anderson --- wgengine/magicsock/magicsock_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wgengine/magicsock/magicsock_test.go b/wgengine/magicsock/magicsock_test.go index 3738d7c98..1e8efac27 100644 --- a/wgengine/magicsock/magicsock_test.go +++ b/wgengine/magicsock/magicsock_test.go @@ -288,6 +288,7 @@ func runDERP(t *testing.T) (s *derp.Server, addr string, cleanupFn func()) { func devLogger(t *testing.T, prefix string) *device.Logger { pfx := []interface{}{prefix} logf := func(format string, args ...interface{}) { + t.Helper() t.Logf("%s: "+format, append(pfx, args...)...) } return &device.Logger{