routing: use complete route in test

Previously not all route fields were properly populated. Example: prev
and next hop maps.
This commit is contained in:
Joost Jager 2018-10-24 21:16:38 +02:00
parent 71037969b7
commit ac04729cff
No known key found for this signature in database
GPG Key ID: AE6B0D042C8E38D9

@ -421,9 +421,10 @@ func TestChannelUpdateValidation(t *testing.T) {
},
}
route := &Route{
Hops: hops,
}
route := NewRouteFromHops(
lnwire.MilliSatoshi(10000), 100,
NewVertex(ctx.aliases["a"]), hops,
)
// Set up a channel update message with an invalid signature to be
// returned to the sender.