itest: make sure invoice is settled in multi hop htlc test

This commit is contained in:
yyforyongyu committed 2023-05-24 02:38:40 +08:00
1 parent 775032de29
commit 9ae4511a6f
1 file changed
+3
+3
View File
@@ -1371,6 +1371,9 @@ func runMultiHopHtlcAggregation(ht *lntest.HarnessTest,
resp := carol.RPC.AddInvoice(invoice)
ht.CompletePaymentRequests(alice, []string{resp.PaymentRequest})
// Make sure Carol has settled the invoice.
ht.AssertInvoiceSettled(carol, resp.PaymentAddr)
// With the network active, we'll now add a new hodl invoices at both
// Alice's and Carol's end. Make sure the cltv expiry delta is large
// enough, otherwise Bob won't send out the outgoing htlc.