From 3cf068d843fa7ac17c10da5c59a36e89ea34e470 Mon Sep 17 00:00:00 2001 From: Yadu Babuji Date: Sat, 23 Nov 2024 18:31:56 -0600 Subject: [PATCH] Relax address matching strictness to account for IPv6 representation of 127.0.0.1 as ::ffff:127.0.0.1 --- parsl/tests/test_htex/test_zmq_binding.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsl/tests/test_htex/test_zmq_binding.py b/parsl/tests/test_htex/test_zmq_binding.py index e21c065d0d..72a9629405 100644 --- a/parsl/tests/test_htex/test_zmq_binding.py +++ b/parsl/tests/test_htex/test_zmq_binding.py @@ -103,4 +103,5 @@ def test_limited_interface_binding(cert_dir: Optional[str]): matched_conns = [conn for conn in conns if conn.laddr.port == ix.worker_result_port] assert len(matched_conns) == 1 - assert matched_conns[0].laddr.ip == address + # laddr.ip can return ::ffff:127.0.0.1 when using IPv6 + assert address in matched_conns[0].laddr.ip