itest: remove extra UTXO used in sweeping tests

Given #8786 is now fixed, we no longer need extra UTXOs in these tests.
This commit is contained in:
yyforyongyu
2025-06-23 18:32:21 +08:00
parent 09df5894d0
commit 2c73a3fa7c

View File

@@ -766,14 +766,6 @@ func testSweepHTLCs(ht *lntest.HarnessTest) {
// - when sweeping HTLCs, he needs one utxo for each sweep.
numUTXOs := 2
// Bob should have enough wallet UTXOs here to sweep the HTLC in the
// end of this test. However, due to a known issue, Bob's wallet may
// report there's no UTXO available. For details,
// - https://github.com/lightningnetwork/lnd/issues/8786
//
// TODO(yy): remove this extra UTXO once the issue is resolved.
numUTXOs++
// For neutrino backend, we need two more UTXOs for Bob to create his
// sweeping txns.
if ht.IsNeutrinoBackend() {
@@ -1802,14 +1794,6 @@ func testFeeReplacement(ht *lntest.HarnessTest) {
// - when sweeping HTLCs, he needs one utxo for each sweep.
numUTXOs := 2
// Bob should have enough wallet UTXOs here to sweep the HTLC in the
// end of this test. However, due to a known issue, Bob's wallet may
// report there's no UTXO available. For details,
// - https://github.com/lightningnetwork/lnd/issues/8786
//
// TODO(yy): remove this extra UTXO once the issue is resolved.
numUTXOs++
// For neutrino backend, we need two more UTXOs for Bob to create his
// sweeping txns.
if ht.IsNeutrinoBackend() {