routing/test: mark function as test helper

This commit is contained in:
Joost Jager
2019-10-03 12:52:38 +02:00
parent 5ae4f0eae4
commit 6b391d04d0

View File

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