mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
pytest: fix another flake in test_restorefrompeer.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
71adeccfbf
commit
b5845afd43
1 changed files with 7 additions and 1 deletions
|
@ -2694,7 +2694,13 @@ def test_restorefrompeer(node_factory, bitcoind):
|
|||
l1.start()
|
||||
assert l1.daemon.is_in_log('Server started with public key')
|
||||
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||
# If this happens fast enough, connect fails with "disconnected
|
||||
# during connection"
|
||||
try:
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||
except RpcError as err:
|
||||
assert "disconnected during connection" in err.error
|
||||
|
||||
l1.daemon.wait_for_log('peer_in WIRE_YOUR_PEER_STORAGE')
|
||||
|
||||
assert l1.rpc.restorefrompeer()['stubs'][0] == _['channel_id']
|
||||
|
|
Loading…
Add table
Reference in a new issue