mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
df-tests: wait for disconnect before asserting unknown channel
fixes: FAILED tests/test_connection.py::test_funding_v2_corners - Failed: DID NOT RAISE
This commit is contained in:
parent
44dd353aa2
commit
5c7d2f09c1
1 changed files with 1 additions and 3 deletions
|
@ -1324,12 +1324,10 @@ def test_funding_v2_corners(node_factory, bitcoind):
|
|||
l1.rpc.disconnect(l2.info['id'], force=True)
|
||||
wait_for(lambda: len(l1.rpc.listpeers()['peers']) == 0)
|
||||
|
||||
if not len(l2.rpc.listpeers()['peers']) == 1:
|
||||
assert l2.daemon.wait_for_log('Unsaved peer failed')
|
||||
|
||||
with pytest.raises(RpcError, match=r'Unknown channel'):
|
||||
l1.rpc.openchannel_abort(start['channel_id'])
|
||||
|
||||
wait_for(lambda: len(l2.rpc.listpeers()['peers']) == 0)
|
||||
with pytest.raises(RpcError, match=r'Unknown channel'):
|
||||
l2.rpc.openchannel_abort(start['channel_id'])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue