From eea4781606cfe7387bb9a594a9586b4911fecb03 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Sat, 11 Feb 2023 00:04:21 +0100 Subject: [PATCH] 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 --- tests/test_gossip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_gossip.py b/tests/test_gossip.py index 506795739..cd093e55d 100644 --- a/tests/test_gossip.py +++ b/tests/test_gossip.py @@ -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