mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
pytest: fix a probable flake on test_channel_opener
This commit is contained in:
parent
90a4476f16
commit
4134c24cc9
1 changed files with 4 additions and 0 deletions
|
@ -2757,6 +2757,10 @@ def test_channel_opener(node_factory):
|
|||
|
||||
# close and check for 'closer'
|
||||
l1.rpc.close(l2.rpc.getinfo()["id"])
|
||||
l1.daemon.wait_for_log("State changed from CHANNELD_NORMAL to")
|
||||
l2.daemon.wait_for_log("State changed from CHANNELD_NORMAL to")
|
||||
|
||||
# 'closer' should now be set accordingly
|
||||
assert(l1.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'local')
|
||||
assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'remote')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue