From 1b071dac2c638eeebab7dec780d73e86f0440557 Mon Sep 17 00:00:00 2001 From: comrumino Date: Wed, 10 Jan 2024 22:00:29 -0600 Subject: [PATCH] Changed test host/ip settings for registry to avoid accidental ipv6 usage. --- tests/test_registry.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_registry.py b/tests/test_registry.py index 33315c07..74a3c89c 100644 --- a/tests/test_registry.py +++ b/tests/test_registry.py @@ -79,15 +79,16 @@ def test_listing(self): class TestTcpRegistry(BaseRegistryTest, unittest.TestCase): def _get_server(self): - return TCPRegistryServer(pruning_timeout=PRUNING_TIMEOUT, allow_listing=True) + return TCPRegistryServer(host="127.0.0.1", pruning_timeout=PRUNING_TIMEOUT, allow_listing=True) def _get_client(self): - return TCPRegistryClient("localhost") + return TCPRegistryClient(ip="127.0.0.1") class TestUdpRegistry(BaseRegistryTest, unittest.TestCase): + """ May fail due to iptables/packet-drops. """ def _get_server(self): - return UDPRegistryServer(pruning_timeout=PRUNING_TIMEOUT, allow_listing=True) + return UDPRegistryServer(host="0.0.0.0", pruning_timeout=PRUNING_TIMEOUT, allow_listing=True) def _get_client(self): return UDPRegistryClient()