routing/test: mark function as test helper
This commit is contained in:
parent
5ae4f0eae4
commit
6b391d04d0
@ -3405,6 +3405,8 @@ func TestBuildRoute(t *testing.T) {
|
|||||||
defer cleanUp()
|
defer cleanUp()
|
||||||
|
|
||||||
checkHops := func(rt *route.Route, expected []uint64) {
|
checkHops := func(rt *route.Route, expected []uint64) {
|
||||||
|
t.Helper()
|
||||||
|
|
||||||
if len(rt.Hops) != len(expected) {
|
if len(rt.Hops) != len(expected) {
|
||||||
t.Fatal("hop count mismatch")
|
t.Fatal("hop count mismatch")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user