lnwallet test: account for funding tx being published by fundingmanager
This commit is contained in:
1 file changed
+10
@@ -430,6 +430,11 @@ func testDualFundingReservationWorkflow(miner *rpctest.Harness,
|
|||||||
t.Fatalf("channel not detected as dual funder")
|
t.Fatalf("channel not detected as dual funder")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Let Alice publish the funding transaction.
|
||||||
|
if err := alice.PublishTransaction(fundingTx); err != nil {
|
||||||
|
t.Fatalf("unable to publish funding tx: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
// Mine a single block, the funding transaction should be included
|
// Mine a single block, the funding transaction should be included
|
||||||
// within this block.
|
// within this block.
|
||||||
err = waitForMempoolTx(miner, &fundingSha)
|
err = waitForMempoolTx(miner, &fundingSha)
|
||||||
@@ -846,6 +851,11 @@ func testSingleFunderReservationWorkflow(miner *rpctest.Harness,
|
|||||||
channeldb.SingleFunder, bobChannels[0].ChanType)
|
channeldb.SingleFunder, bobChannels[0].ChanType)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Let Alice publish the funding transaction.
|
||||||
|
if err := alice.PublishTransaction(fundingTx); err != nil {
|
||||||
|
t.Fatalf("unable to publish funding tx: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
// Mine a single block, the funding transaction should be included
|
// Mine a single block, the funding transaction should be included
|
||||||
// within this block.
|
// within this block.
|
||||||
err = waitForMempoolTx(miner, &fundingSha)
|
err = waitForMempoolTx(miner, &fundingSha)
|
||||||
|
|||||||
Reference in new issue
Block a user