From ac04729cff28af9c3269d23badfb953a2271150e Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Wed, 24 Oct 2018 21:16:38 +0200 Subject: [PATCH] routing: use complete route in test Previously not all route fields were properly populated. Example: prev and next hop maps. --- routing/router_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/routing/router_test.go b/routing/router_test.go index 8bfebe82..7a62754e 100644 --- a/routing/router_test.go +++ b/routing/router_test.go @@ -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.