From 9ae4511a6f4bdbba8ef83f181523924fbc45187a Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 24 May 2023 02:38:40 +0800 Subject: [PATCH] itest: make sure invoice is settled in multi hop htlc test --- itest/lnd_multi-hop_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itest/lnd_multi-hop_test.go b/itest/lnd_multi-hop_test.go index ea7482117..572748a07 100644 --- a/itest/lnd_multi-hop_test.go +++ b/itest/lnd_multi-hop_test.go @@ -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.