mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pytest: Use the port from the lightning node
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ def test_closing_id(node_factory):
|
|||||||
l1, l2 = node_factory.get_nodes(2)
|
l1, l2 = node_factory.get_nodes(2)
|
||||||
|
|
||||||
# Close by full channel ID.
|
# Close by full channel ID.
|
||||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.info['port'])
|
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||||
l1.fund_channel(l2, 10**6)
|
l1.fund_channel(l2, 10**6)
|
||||||
cid = l2.rpc.listpeers()['peers'][0]['channels'][0]['channel_id']
|
cid = l2.rpc.listpeers()['peers'][0]['channels'][0]['channel_id']
|
||||||
l2.rpc.close(cid)
|
l2.rpc.close(cid)
|
||||||
@@ -20,7 +20,7 @@ def test_closing_id(node_factory):
|
|||||||
l2.daemon.wait_for_log("Forgetting remote peer .*")
|
l2.daemon.wait_for_log("Forgetting remote peer .*")
|
||||||
|
|
||||||
# Close by peer ID.
|
# Close by peer ID.
|
||||||
l2.rpc.connect(l1.info['id'], 'localhost', l1.info['port'])
|
l2.rpc.connect(l1.info['id'], 'localhost', l1.port)
|
||||||
l1.daemon.wait_for_log("hand_back_peer .*: now local again")
|
l1.daemon.wait_for_log("hand_back_peer .*: now local again")
|
||||||
l2.fund_channel(l1, 10**6)
|
l2.fund_channel(l1, 10**6)
|
||||||
pid = l1.info['id']
|
pid = l1.info['id']
|
||||||
|
|||||||
Reference in New Issue
Block a user