mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 14:24:09 +01:00
pyln-testing: fix LihgtningNode.openchannel()
`[False]` is considered True in Python, so this flake fix didn't work. ``` >>> if [False]: ... print('x') ... x ``` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
eda6a4b44a
commit
075f79033a
1 changed files with 1 additions and 1 deletions
|
@ -903,7 +903,7 @@ class LightningNode(object):
|
|||
|
||||
if wait_for_announce:
|
||||
self.bitcoin.generate_block(5)
|
||||
wait_for(lambda: ['alias' in e for e in self.rpc.listnodes(remote_node.info['id'])['nodes']])
|
||||
wait_for(lambda: ['alias' in e for e in self.rpc.listnodes(remote_node.info['id'])['nodes']] == [True])
|
||||
|
||||
return {'address': addr, 'wallettxid': wallettxid, 'fundingtx': res['tx']}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue