From 168fc4e1abec7b91900c5a17830d819e60f1cdf9 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 7 Aug 2019 13:12:32 +0200 Subject: [PATCH] lntest/itest: cleanup force closed channel in testSendUpdateDisableChannel Otherwise following tests would be flaky because of unexpected sweep transaction in the mempool. --- lntest/itest/lnd_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lntest/itest/lnd_test.go b/lntest/itest/lnd_test.go index 90a8523b..096c6b7f 100644 --- a/lntest/itest/lnd_test.go +++ b/lntest/itest/lnd_test.go @@ -12760,6 +12760,10 @@ func testSendUpdateDisableChannel(net *lntest.NetworkHarness, t *harnessTest) { }, ) mineBlocks(t, net, 1, 1) + + // And finally, clean up the force closed channel by mining the + // sweeping transaction. + cleanupForceClose(t, net, net.Alice, chanPointAliceCarol) } // testAbandonChannel abandones a channel and asserts that it is no