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 9bc8643 commit 3b82778
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 3b82778

Please sign in to comment.