mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
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:
committed by
Alex Myers
parent
2c7ceb8a21
commit
eea4781606
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user