pytest: allow ipv6 in test_announce_dns_suppressed

The test runs fine on CI but can fail locally on IPv6 systems,
as the address descriptor is just checked agains IPv4.

Changelog-None
This commit is contained in:
Michael Schmoock
2023-02-11 00:04:21 +01:00
committed by Alex Myers
parent 2c7ceb8a21
commit eea4781606

View File

@@ -179,7 +179,7 @@ def test_announce_dns_suppressed(node_factory, bitcoind):
addresses = only_one(l2.rpc.listnodes(l1.info['id'])['nodes'])['addresses']
assert len(addresses) == 1
assert addresses[0]['type'] == 'ipv4'
assert addresses[0]['type'] in ['ipv4', 'ipv6']
assert addresses[0]['address'] != 'example.com'
assert addresses[0]['port'] == 1236