mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-20 13:27:36 +02:00
pytest: fix test_recover_plugin flake
It can try to reconnect while we're explicitly connecting:
```
2025-04-15T03:40:53.9184103Z > l2.rpc.connect(l1.info['id'], 'localhost', l1.port)
2025-04-15T03:40:53.9184311Z
2025-04-15T03:40:53.9184401Z tests/test_misc.py:3078:
...
2025-04-15T03:40:53.9206302Z > raise RpcError(method, payload, resp['error'])
2025-04-15T03:40:53.9207225Z E pyln.client.lightning.RpcError: RPC call failed: method: connect, payload: {'id': '0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518', 'host': 'localhost', 'port': 45219}, error: {'code': 402, 'message': 'disconnected during connection'}
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
afa8875c8a
commit
139d21173b
1 changed files with 4 additions and 2 deletions
|
|
@ -3048,7 +3048,8 @@ def test_recover_plugin(node_factory, bitcoind):
|
|||
feerates=(7500, 7500, 7500, 7500),
|
||||
options={
|
||||
'log-level': 'info',
|
||||
'experimental-peer-storage': None
|
||||
'experimental-peer-storage': None,
|
||||
'dev-no-reconnect': None,
|
||||
},
|
||||
)
|
||||
l2 = node_factory.get_node(
|
||||
|
|
@ -3058,7 +3059,8 @@ def test_recover_plugin(node_factory, bitcoind):
|
|||
allow_bad_gossip=True,
|
||||
options={
|
||||
'log-level': 'info',
|
||||
'experimental-peer-storage': None
|
||||
'experimental-peer-storage': None,
|
||||
'dev-no-reconnect': None,
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue