htlcswitch: fix TestUpdateForwardingPolicy

In this commit, we fix the TestUpdateForwardingPolicy test case after
the recent modification in the way we handling validating constraints
within the link. After the recent set of changes, Bob will properly use
his outgoing link to validate the set of fee related constraints rather
than the incoming link. As a result, we need to modify the second
channel link, not the first for the test to still be applicable.
This commit is contained in:
Olaoluwa Osuntokun 2018-04-03 20:11:06 -07:00
parent ec8e3b626d
commit 8b520377bb
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -826,7 +826,7 @@ func TestUpdateForwardingPolicy(t *testing.T) {
// update logic
newPolicy := n.globalPolicy
newPolicy.BaseFee = lnwire.NewMSatFromSatoshis(1000)
n.firstBobChannelLink.UpdateForwardingPolicy(newPolicy)
n.secondBobChannelLink.UpdateForwardingPolicy(newPolicy)
// Next, we'll send the payment again, using the exact same per-hop
// payload for each node. This payment should fail as it won't factor