From 0f6af2ed54ed359bc1f4e0f2b31c24bf58f63738 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Mon, 18 Nov 2019 11:34:47 +0100 Subject: [PATCH] routing/test: fix outgoing restriction test Previously both paths were equal cost, so it could also be a coincedence that the path with the outgoing restriction would be chosen. --- routing/pathfind_test.go | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/routing/pathfind_test.go b/routing/pathfind_test.go index a47ffa81..2c7afde4 100644 --- a/routing/pathfind_test.go +++ b/routing/pathfind_test.go @@ -1821,30 +1821,22 @@ func TestRestrictOutgoingChannel(t *testing.T) { // target. The path through channel 2 is the highest cost path. testChannels := []*testChannel{ symmetricTestChannel("roasbeef", "a", 100000, &testChannelPolicy{ - Expiry: 144, - FeeRate: 400, - MinHTLC: 1, + Expiry: 144, }, 1), symmetricTestChannel("a", "target", 100000, &testChannelPolicy{ Expiry: 144, FeeRate: 400, - MinHTLC: 1, - }), + }, 4), symmetricTestChannel("roasbeef", "b", 100000, &testChannelPolicy{ - Expiry: 144, - FeeRate: 800, - MinHTLC: 1, + Expiry: 144, }, 2), symmetricTestChannel("roasbeef", "b", 100000, &testChannelPolicy{ - Expiry: 144, - FeeRate: 600, - MinHTLC: 1, + Expiry: 144, }, 3), symmetricTestChannel("b", "target", 100000, &testChannelPolicy{ Expiry: 144, - FeeRate: 400, - MinHTLC: 1, - }), + FeeRate: 800, + }, 5), } ctx := newPathFindingTestContext(t, testChannels, "roasbeef")