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

This commit is contained in:
yyforyongyu 2023-05-24 02:38:40 +08:00
parent 775032de29
commit 9ae4511a6f
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -1371,6 +1371,9 @@ func runMultiHopHtlcAggregation(ht *lntest.HarnessTest,
resp := carol.RPC.AddInvoice(invoice) resp := carol.RPC.AddInvoice(invoice)
ht.CompletePaymentRequests(alice, []string{resp.PaymentRequest}) 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 // 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 // Alice's and Carol's end. Make sure the cltv expiry delta is large
// enough, otherwise Bob won't send out the outgoing htlc. // enough, otherwise Bob won't send out the outgoing htlc.