Browse Source

df-tests: test_shutdown_awaiting_lockin check correct state

ppa
niftynei 4 years ago
committed by Christian Decker
parent
commit
dfa0eb0f2f
  1. 6
      tests/test_connection.py

6
tests/test_connection.py

@ -699,8 +699,10 @@ def test_shutdown_awaiting_lockin(node_factory, bitcoind):
l1.rpc.close(chanid)
l1.daemon.wait_for_log('CHANNELD_AWAITING_LOCKIN to CHANNELD_SHUTTING_DOWN')
l2.daemon.wait_for_log('CHANNELD_AWAITING_LOCKIN to CHANNELD_SHUTTING_DOWN')
l1_state = 'DUALOPEND' if l1.config('experimental-dual-fund') else 'CHANNELD'
l2_state = 'DUALOPEND' if l1.config('experimental-dual-fund') else 'CHANNELD'
l1.daemon.wait_for_log('{}_AWAITING_LOCKIN to CHANNELD_SHUTTING_DOWN'.format(l1_state))
l2.daemon.wait_for_log('{}_AWAITING_LOCKIN to CHANNELD_SHUTTING_DOWN'.format(l2_state))
l1.daemon.wait_for_log('CHANNELD_SHUTTING_DOWN to CLOSINGD_SIGEXCHANGE')
l2.daemon.wait_for_log('CHANNELD_SHUTTING_DOWN to CLOSINGD_SIGEXCHANGE')

Loading…
Cancel
Save