From 80db867a30adce2dc7973d1f1533f5ce9fc795ad Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Mon, 2 May 2022 13:37:32 -0500 Subject: [PATCH] pytest: websocket test can tolerate ipv6 address test_connection.py::test_websocket no longer fails on presence of ipv6 address. --- tests/test_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index 537b9ec3c..4c4a5ced8 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -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")