diff --git a/tests/test_plugin.py b/tests/test_plugin.py index fef82fa4217d..154dba47b16a 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -4138,8 +4138,8 @@ def test_sql(node_factory, bitcoind): l3.daemon.wait_for_log("Refreshing channel: {}".format(scid)) # This has to wait for the hold_invoice plugin to let go! - l1.rpc.close(l2.info['id']) - bitcoind.generate_block(13, wait_for_mempool=1) + txid = l1.rpc.close(l2.info['id'])['txid'] + bitcoind.generate_block(13, wait_for_mempool=txid) wait_for(lambda: len(l3.rpc.listchannels()['channels']) == 2) assert len(l3.rpc.sql("SELECT * FROM channels;")['rows']) == 2 l3.daemon.wait_for_log("Deleting channel: {}".format(scid))