From 6b391d04d0e87e127df6fbc68d45ed773542f2c9 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Thu, 3 Oct 2019 12:52:38 +0200 Subject: [PATCH] routing/test: mark function as test helper --- routing/router_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routing/router_test.go b/routing/router_test.go index fb73a000..8c5b57e2 100644 --- a/routing/router_test.go +++ b/routing/router_test.go @@ -3405,6 +3405,8 @@ func TestBuildRoute(t *testing.T) { defer cleanUp() checkHops := func(rt *route.Route, expected []uint64) { + t.Helper() + if len(rt.Hops) != len(expected) { t.Fatal("hop count mismatch") }