Skip to content

Commit

Permalink
itest: skip testUnconfirmedChannelFunding for neutrino
Browse files Browse the repository at this point in the history
This test was previously working because we'd mine an extra block to
confirm the coins inside `FundCoinsUnconfirmed` when it's a neutrino
backend, as shown in
https://github.com/lightningnetwork/lnd/blob/fdd28c8d888792ea8fde3c557ba9f2594e0a6ec8/lntest/harness.go#L1431
  • Loading branch information
yyforyongyu committed Jul 18, 2024
1 parent 7b03d42 commit 4548971
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions itest/lnd_funding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ func basicChannelFundingTest(ht *lntest.HarnessTest,
// testUnconfirmedChannelFunding tests that our unconfirmed change outputs can
// be used to fund channels.
func testUnconfirmedChannelFunding(ht *lntest.HarnessTest) {
if ht.IsNeutrinoBackend() {
ht.Skip("Skipped due to neutrino backend")
}

const (
chanAmt = funding.MaxBtcFundingAmount
pushAmt = btcutil.Amount(100000)
Expand Down Expand Up @@ -361,11 +365,7 @@ func testUnconfirmedChannelFunding(ht *lntest.HarnessTest) {
// parties. For neutrino backend, the funding transaction should be
// mined. Otherwise, two transactions should be mined, the unconfirmed
// spend and the funding tx.
if ht.IsNeutrinoBackend() {
ht.MineBlocksAndAssertNumTxes(6, 1)
} else {
ht.MineBlocksAndAssertNumTxes(6, 2)
}
ht.MineBlocksAndAssertNumTxes(6, 2)

chanPoint := ht.WaitForChannelOpenEvent(chanOpenUpdate)

Expand Down

0 comments on commit 4548971

Please sign in to comment.