From 0d5808b6f6ed23e724e8b1c283c557d69a4adaa6 Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Wed, 17 Aug 2022 11:26:29 -0500 Subject: [PATCH] pytest: fix test_channel_state_change_history The test fails because the closed channel is deleted by the time we check the state change history. It is unnecessary to mine any blocks after the close, since the state changes up to CLOSINGD_COMPLETE occur without onchain changes. --- tests/test_plugin.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 8ff19370d..55f39f9c6 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -1011,10 +1011,7 @@ def test_channel_state_change_history(node_factory, bitcoind): """ l1, l2 = node_factory.line_graph(2) scid = l1.get_channel_scid(l2) - l1.rpc.close(scid) - bitcoind.generate_block(100) # so it gets settled - bitcoind.generate_block(100) # so it gets settled history = l1.rpc.listpeers()['peers'][0]['channels'][0]['state_changes'] if l1.config('experimental-dual-fund'):