From 72a30fc7505e7fd927b19cea0fbfcbf5550ac07c Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 8 Aug 2022 13:42:23 -0500 Subject: [PATCH] bkpr: dont flake, wait til pay done before mining blocks --- tests/test_bookkeeper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_bookkeeper.py b/tests/test_bookkeeper.py index ec53035ed..5d4766e21 100644 --- a/tests/test_bookkeeper.py +++ b/tests/test_bookkeeper.py @@ -539,15 +539,18 @@ def test_bookkeeping_onchaind_txs(node_factory, bitcoind): Test for a channel that's closed, but whose close tx re-appears in the rescan """ + coin_mvt_plugin = Path(__file__).parent / "plugins" / "coin_movements.py" l1, l2 = node_factory.line_graph(2, wait_for_announce=True, - opts={'disable-plugin': 'bookkeeper'}) + opts={'disable-plugin': 'bookkeeper', + 'plugin': str(coin_mvt_plugin)}) # Double check there's no bookkeeper plugin on assert l1.daemon.opts['disable-plugin'] == 'bookkeeper' # Send l2 funds via the channel l1.pay(l2, 11000000) + l1.daemon.wait_for_log(r'coin movement:.*\'invoice\'') bitcoind.generate_block(10) # Amicably close the channel, mine 101 blocks (channel forgotten)