Skip to content

Commit eea4781

Browse files
m-schmoockendothermicdev
authored andcommitted
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
1 parent 2c7ceb8 commit eea4781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_gossip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def test_announce_dns_suppressed(node_factory, bitcoind):
179179

180180
addresses = only_one(l2.rpc.listnodes(l1.info['id'])['nodes'])['addresses']
181181
assert len(addresses) == 1
182-
assert addresses[0]['type'] == 'ipv4'
182+
assert addresses[0]['type'] in ['ipv4', 'ipv6']
183183
assert addresses[0]['address'] != 'example.com'
184184
assert addresses[0]['port'] == 1236
185185

0 commit comments

Comments
 (0)