Skip to content

Commit e0ec893

Browse files
committed
itest: skip testUnconfirmedChannelFunding for neutrino
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
1 parent 8504344 commit e0ec893

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

itest/lnd_funding_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ func basicChannelFundingTest(ht *lntest.HarnessTest,
278278
// testUnconfirmedChannelFunding tests that our unconfirmed change outputs can
279279
// be used to fund channels.
280280
func testUnconfirmedChannelFunding(ht *lntest.HarnessTest) {
281+
if ht.IsNeutrinoBackend() {
282+
ht.Skip("Skipped due to neutrino backend")
283+
}
284+
281285
const (
282286
chanAmt = funding.MaxBtcFundingAmount
283287
pushAmt = btcutil.Amount(100000)
@@ -361,11 +365,7 @@ func testUnconfirmedChannelFunding(ht *lntest.HarnessTest) {
361365
// parties. For neutrino backend, the funding transaction should be
362366
// mined. Otherwise, two transactions should be mined, the unconfirmed
363367
// spend and the funding tx.
364-
if ht.IsNeutrinoBackend() {
365-
ht.MineBlocksAndAssertNumTxes(6, 1)
366-
} else {
367-
ht.MineBlocksAndAssertNumTxes(6, 2)
368-
}
368+
ht.MineBlocksAndAssertNumTxes(6, 2)
369369

370370
chanPoint := ht.WaitForChannelOpenEvent(chanOpenUpdate)
371371

0 commit comments

Comments
 (0)