mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
routing/test: mark function as test helper
This commit is contained in:
parent
5ae4f0eae4
commit
6b391d04d0
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue