From bd8c1548154b28b0e4cb17bc0d4d5ca937a64694 Mon Sep 17 00:00:00 2001 From: Eran Ifrah Date: Fri, 8 Aug 2025 09:42:19 +0300 Subject: [PATCH] Do not hard coded "localhost" The method "ValkeyServerHandle.create_from_server" hard-codes "localhost" as the server bind IP. This won't work if the server was started on a different IP (for example, the machine private IP). Signed-off-by: Eran Ifrah --- src/valkey_test_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/valkey_test_case.py b/src/valkey_test_case.py index 2e10d71..c14caae 100644 --- a/src/valkey_test_case.py +++ b/src/valkey_test_case.py @@ -85,7 +85,7 @@ def __init__( @classmethod def create_from_server(self, server, db=0): logging.info(("Created regular client for port {}".format(server.port))) - r = StrictValkey(host="localhost", port=server.port, db=db) + r = StrictValkey(host=server.bind_ip, port=server.port, db=db) return r def set_startup_args(self, args):