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") }