Test standard node@host:port address
(node_factory)
| 245 | |
| 246 | |
| 247 | def test_connect_standard_addr(node_factory): |
| 248 | """Test standard node@host:port address |
| 249 | """ |
| 250 | l1, l2, l3 = node_factory.get_nodes(3) |
| 251 | |
| 252 | # node@host |
| 253 | ret = l1.rpc.connect("{}@{}".format(l2.info['id'], 'localhost'), port=l2.port) |
| 254 | assert ret['id'] == l2.info['id'] |
| 255 | assert ret['address'] == {'type': 'ipv4', 'address': '127.0.0.1', 'port': l2.port} |
| 256 | |
| 257 | # node@host:port |
| 258 | ret = l1.rpc.connect("{}@localhost:{}".format(l3.info['id'], l3.port)) |
| 259 | assert ret['id'] == l3.info['id'] |
| 260 | |
| 261 | # node@[ipv6]:port --- not supported by our CI |
| 262 | # ret = l1.rpc.connect("{}@[::1]:{}".format(l3.info['id'], l3.port)) |
| 263 | # assert ret['id'] == l3.info['id'] |
| 264 | |
| 265 | |
| 266 | def test_reconnect_channel_peers(node_factory, executor): |