pytest: websocket test can tolerate ipv6 address

test_connection.py::test_websocket no longer fails on presence of ipv6
address.
This commit is contained in:
Alex Myers 2022-05-02 13:37:32 -05:00 committed by Michael Schmoock
parent e516a5dffe
commit 80db867a30

View File

@ -3816,8 +3816,8 @@ def test_websocket(node_factory):
break
# Check node_announcement has websocket
assert (only_one(l2.rpc.listnodes(l1.info['id'])['nodes'])['addresses']
== [{'type': 'ipv4', 'address': '127.0.0.1', 'port': port2}, {'type': 'websocket', 'port': ws_port}])
ws_address = {'type': 'websocket', 'port': ws_port}
assert ws_address in only_one(l2.rpc.listnodes(l1.info['id'])['nodes'])['addresses']
@pytest.mark.developer("dev-disconnect required")