mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-04 18:01:57 +01:00
routing: Fix dropped errors in tests.
lnd: Fix dropped errors in tests. contractcourt: Fix dropped errors in tests. htlcswitch: Fix dropped errors in tests. invoices: Fix dropped error in tests. lnwallet: Fix dropped errors in tests. macaroons: Fix dropped error in tests.
This commit is contained in:
@@ -1421,6 +1421,9 @@ func TestRouteFailMaxHTLC(t *testing.T) {
|
||||
// Next, update the middle edge policy to only allow payments up to 100k
|
||||
// msat.
|
||||
_, midEdge, _, err := graph.graph.FetchChannelEdgesByID(firstToSecondID)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to fetch channel edges by ID: %v", err)
|
||||
}
|
||||
midEdge.MessageFlags = 1
|
||||
midEdge.MaxHTLC = payAmt - 1
|
||||
if err := graph.graph.UpdateEdgePolicy(midEdge); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user