Skip to content

Commit

Permalink
itest: fix flake in testSendDirectPayment
Browse files Browse the repository at this point in the history
This bug was hidden because we used standby nodes before, which always
have more-than-necessary wallet utxos.
  • Loading branch information
yyforyongyu committed Dec 3, 2024
1 parent 1176b22 commit 3c60868
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions itest/lnd_payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 3c60868

Please sign in to comment.