We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71adecc commit b5845afCopy full SHA for b5845af
tests/test_misc.py
@@ -2694,7 +2694,13 @@ def test_restorefrompeer(node_factory, bitcoind):
2694
l1.start()
2695
assert l1.daemon.is_in_log('Server started with public key')
2696
2697
- l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
+ # If this happens fast enough, connect fails with "disconnected
2698
+ # during connection"
2699
+ try:
2700
+ l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
2701
+ except RpcError as err:
2702
+ assert "disconnected during connection" in err.error
2703
+
2704
l1.daemon.wait_for_log('peer_in WIRE_YOUR_PEER_STORAGE')
2705
2706
assert l1.rpc.restorefrompeer()['stubs'][0] == _['channel_id']
0 commit comments