Skip to content

Commit 533aeb8

Browse files
committed
itest: remove flakeFundExtraUTXO
1 parent 07c60c8 commit 533aeb8

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

itest/flakes.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ package itest
33
import (
44
"time"
55

6-
"github.com/btcsuite/btcd/btcutil"
76
"github.com/lightningnetwork/lnd/lntest"
8-
"github.com/lightningnetwork/lnd/lntest/node"
97
)
108

119
// flakePreimageSettlement documents a flake found when testing the preimage
@@ -34,19 +32,6 @@ func flakePreimageSettlement(ht *lntest.HarnessTest) {
3432
time.Sleep(2 * time.Second)
3533
}
3634

37-
// flakeFundExtraUTXO documents a flake found when testing the sweeping behavior
38-
// of the given node, which would fail due to no wallet UTXO available, while
39-
// there should be enough.
40-
//
41-
// TODO(yy): remove it once the issue is resolved.
42-
func flakeFundExtraUTXO(ht *lntest.HarnessTest, node *node.HarnessNode) {
43-
// The node should have enough wallet UTXOs here to sweep the HTLC in
44-
// the end of this test. However, due to a known issue, the node's
45-
// wallet may report there's no UTXO available. For details,
46-
// - https://github.com/lightningnetwork/lnd/issues/8786
47-
ht.FundCoins(btcutil.SatoshiPerBitcoin, node)
48-
}
49-
5035
// flakeTxNotifierNeutrino documents a flake found when running force close
5136
// tests using neutrino backend, which is a race between two notifications - one
5237
// for the spending notification, the other for the block which contains the

itest/lnd_multi-hop_force_close_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,6 @@ func runLocalClaimOutgoingHTLC(ht *lntest.HarnessTest,
341341
ht.FundCoins(btcutil.SatoshiPerBitcoin, bob)
342342
}
343343

344-
flakeFundExtraUTXO(ht, bob)
345-
346344
// Now that our channels are set up, we'll send two HTLC's from Alice
347345
// to Carol. The first HTLC will be universally considered "dust",
348346
// while the second will be a proper fully valued HTLC.
@@ -685,7 +683,6 @@ func runMultiHopReceiverPreimageClaim(ht *lntest.HarnessTest,
685683

686684
// Fund Carol one UTXO so she can sweep outputs.
687685
ht.FundCoins(btcutil.SatoshiPerBitcoin, carol)
688-
flakeFundExtraUTXO(ht, carol)
689686

690687
// If this is a taproot channel, then we'll need to make some manual
691688
// route hints so Alice can actually find a route.
@@ -1601,8 +1598,6 @@ func runLocalClaimIncomingHTLC(ht *lntest.HarnessTest,
16011598

16021599
// Fund Carol one UTXO so she can sweep outputs.
16031600
ht.FundCoins(btcutil.SatoshiPerBitcoin, carol)
1604-
flakeFundExtraUTXO(ht, carol)
1605-
flakeFundExtraUTXO(ht, bob)
16061601

16071602
// If this is a taproot channel, then we'll need to make some manual
16081603
// route hints so Alice can actually find a route.
@@ -1897,7 +1892,6 @@ func runLocalClaimIncomingHTLCLeased(ht *lntest.HarnessTest,
18971892

18981893
// Fund Carol one UTXO so she can sweep outputs.
18991894
ht.FundCoins(btcutil.SatoshiPerBitcoin, carol)
1900-
flakeFundExtraUTXO(ht, carol)
19011895

19021896
// With the network active, we'll now add a new hodl invoice at Carol's
19031897
// end. Make sure the cltv expiry delta is large enough, otherwise Bob
@@ -2230,7 +2224,6 @@ func runLocalPreimageClaim(ht *lntest.HarnessTest,
22302224

22312225
// Fund Carol one UTXO so she can sweep outputs.
22322226
ht.FundCoins(btcutil.SatoshiPerBitcoin, carol)
2233-
flakeFundExtraUTXO(ht, carol)
22342227

22352228
// If this is a taproot channel, then we'll need to make some manual
22362229
// route hints so Alice can actually find a route.
@@ -2490,7 +2483,6 @@ func runLocalPreimageClaimLeased(ht *lntest.HarnessTest,
24902483

24912484
// Fund Carol one UTXO so she can sweep outputs.
24922485
ht.FundCoins(btcutil.SatoshiPerBitcoin, carol)
2493-
flakeFundExtraUTXO(ht, carol)
24942486

24952487
// With the network active, we'll now add a new hodl invoice at Carol's
24962488
// end. Make sure the cltv expiry delta is large enough, otherwise Bob
@@ -2842,7 +2834,6 @@ func runHtlcAggregation(ht *lntest.HarnessTest,
28422834
// We need one additional UTXO to create the sweeping tx for the
28432835
// second-level success txes.
28442836
ht.FundCoins(btcutil.SatoshiPerBitcoin, bob)
2845-
flakeFundExtraUTXO(ht, bob)
28462837

28472838
// If this is a taproot channel, then we'll need to make some manual
28482839
// route hints so Alice+Carol can actually find a route.

itest/lnd_sweep_test.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ func testSweepCPFPAnchorOutgoingTimeout(ht *lntest.HarnessTest) {
115115
ht.FundCoins(btcutil.SatoshiPerBitcoin, bob)
116116
}
117117

118-
flakeFundExtraUTXO(ht, bob)
119-
120118
// Subscribe the invoice.
121119
streamCarol := carol.RPC.SubscribeSingleInvoice(payHash[:])
122120

@@ -435,8 +433,6 @@ func testSweepCPFPAnchorIncomingTimeout(ht *lntest.HarnessTest) {
435433
ht.FundCoins(btcutil.SatoshiPerBitcoin, bob)
436434
}
437435

438-
flakeFundExtraUTXO(ht, bob)
439-
440436
// Subscribe the invoice.
441437
streamCarol := carol.RPC.SubscribeSingleInvoice(payHash[:])
442438

0 commit comments

Comments
 (0)