itest: fix flake in testSendDirectPayment

This bug was hidden because we used standby nodes before, which always
have more-than-necessary wallet utxos.
This commit is contained in:
yyforyongyu committed 2024-12-20 19:38:06 +08:00
1 parent e7310ff1b6
commit 2a9b7ec536
1 file changed
+6
+6
View File
@@ -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{