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 authored and m-schmoock committed May 4, 2022
1 parent e516a5d commit 80db867
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 80db867

Please sign in to comment.