From 8e08948b690cdb6fbada6c02ab07394d258ad54c Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Wed, 20 Nov 2024 14:48:16 +0800 Subject: [PATCH] itest: fix flake in `testSendDirectPayment` This bug was hidden because we used standby nodes before, which always have more-than-necessary wallet utxos. --- itest/lnd_payment_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/itest/lnd_payment_test.go b/itest/lnd_payment_test.go index d36be796aa..74adc4ffad 100644 --- a/itest/lnd_payment_test.go +++ b/itest/lnd_payment_test.go @@ -449,6 +449,12 @@ func testSendDirectPayment(ht *lntest.HarnessTest) { // Make sure they are connected. st.EnsureConnected(alice, bob) + // There's a bug that causes the funding to be failed + // due to the `ListCoins` cannot find the utxos. + // + // TODO(yy): remove this line to fix the ListCoins bug. + st.FundCoins(btcutil.SatoshiPerBitcoin, alice) + // Open a channel with 100k satoshis between Alice and // Bob with Alice being the sole funder of the channel. params := lntest.OpenChannelParams{