lnwallet test: account for funding tx being published by fundingmanager

This commit is contained in:
Johan T. Halseth committed 2018-07-31 14:53:21 +02:00
1 parent b885e8d288
commit 5b77ebddb2
1 file changed
+10
+10
View File
@@ -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)