mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-02 12:44:26 +01:00
test nit: wait_for_mempool cleanup
Wait for mempool=1 before making a block
This commit is contained in:
@@ -934,8 +934,7 @@ def test_shutdown_awaiting_lockin(node_factory, bitcoind):
|
||||
chanid = l1.rpc.fundchannel(l2.info['id'], 10**6)['channel_id']
|
||||
|
||||
# Technically, this is async to fundchannel.
|
||||
l1.daemon.wait_for_log('sendrawtx exit 0')
|
||||
bitcoind.generate_block(1)
|
||||
bitcoind.generate_block(1, wait_for_mempool=1)
|
||||
|
||||
l1.rpc.close(chanid)
|
||||
|
||||
@@ -951,9 +950,8 @@ def test_shutdown_awaiting_lockin(node_factory, bitcoind):
|
||||
# CLOSINGD_COMPLETE may come first).
|
||||
l1.daemon.wait_for_logs(['sendrawtx exit 0', ' to CLOSINGD_COMPLETE'])
|
||||
l2.daemon.wait_for_logs(['sendrawtx exit 0', ' to CLOSINGD_COMPLETE'])
|
||||
assert bitcoind.rpc.getmempoolinfo()['size'] == 1
|
||||
|
||||
bitcoind.generate_block(1)
|
||||
bitcoind.generate_block(1, wait_for_mempool=1)
|
||||
l1.daemon.wait_for_log(' to ONCHAIN')
|
||||
l2.daemon.wait_for_log(' to ONCHAIN')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user