Skip to content

Commit

Permalink
pytest: websocket test can tolerate ipv6 address
Browse files Browse the repository at this point in the history
test_connection.py::test_websocket no longer fails on presence of ipv6
address.
  • Loading branch information
endothermicdev committed May 5, 2022
1 parent 0fc5ef9 commit 2a3c00f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3816,8 +3816,8 @@ def recv(self, maxlen):
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")
Expand Down

0 comments on commit 2a3c00f

Please sign in to comment.