mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-07 11:22:37 +01:00
graph+routing: address linter errors
This is done in a separate commit so as to keep the original code-move commit mostly a pure code move.
This commit is contained in:
@@ -2288,7 +2288,8 @@ func TestPathFindSpecExample(t *testing.T) {
|
||||
// parameters.
|
||||
lastHop := route.Hops[1]
|
||||
require.EqualValues(t, amt, lastHop.AmtToForward)
|
||||
require.EqualValues(t, startingHeight+MinCLTVDelta, lastHop.OutgoingTimeLock)
|
||||
require.EqualValues(t, startingHeight+MinCLTVDelta,
|
||||
lastHop.OutgoingTimeLock)
|
||||
}
|
||||
|
||||
func assertExpectedPath(t *testing.T, aliasMap map[string]route.Vertex,
|
||||
@@ -2297,7 +2298,8 @@ func assertExpectedPath(t *testing.T, aliasMap map[string]route.Vertex,
|
||||
require.Len(t, path, len(nodeAliases))
|
||||
|
||||
for i, hop := range path {
|
||||
require.Equal(t, aliasMap[nodeAliases[i]], hop.policy.ToNodePubKey())
|
||||
require.Equal(t, aliasMap[nodeAliases[i]],
|
||||
hop.policy.ToNodePubKey())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user