mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 18:57:06 +01:00
pytest: Let connect
start nodes in parallel
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
e3bac12683
commit
b307df0002
1 changed files with 1 additions and 2 deletions
|
@ -316,8 +316,7 @@ class BaseLightningDTests(unittest.TestCase):
|
|||
|
||||
class LightningDTests(BaseLightningDTests):
|
||||
def connect(self, may_reconnect=False):
|
||||
l1 = self.node_factory.get_node(may_reconnect=may_reconnect)
|
||||
l2 = self.node_factory.get_node(may_reconnect=may_reconnect)
|
||||
l1, l2 = self.node_factory.get_nodes(2, opts={'may_reconnect': may_reconnect})
|
||||
ret = l1.rpc.connect(l2.info['id'], 'localhost', l2.info['port'])
|
||||
|
||||
assert ret['id'] == l2.info['id']
|
||||
|
|
Loading…
Add table
Reference in a new issue