From 5b77ebddb21c1cb56c44db7208a7bd871a780c8d Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Thu, 26 Jul 2018 19:17:42 +0200 Subject: [PATCH] lnwallet test: account for funding tx being published by fundingmanager --- lnwallet/interface_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 4d1a956a..29772bb3 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -430,6 +430,11 @@ func testDualFundingReservationWorkflow(miner *rpctest.Harness, 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 // within this block. err = waitForMempoolTx(miner, &fundingSha) @@ -846,6 +851,11 @@ func testSingleFunderReservationWorkflow(miner *rpctest.Harness, 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 // within this block. err = waitForMempoolTx(miner, &fundingSha)