From c286ddab38db24ca74fb19a805eca45dfda46b30 Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Sat, 12 Oct 2024 19:55:02 +0300 Subject: [PATCH] test: lib: rest_client: use 'http' scheme even when connecting via a unix socket aiohttp 3.10.5 complains when 'unix+http' is used for a unix-domain socket. USe 'http', which work with 3.10.5 and the toolchain's 3.9.5. Closes scylladb/scylladb#21080 --- test/pylib/rest_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/pylib/rest_client.py b/test/pylib/rest_client.py index 98d5cca624..fa5ed7d42b 100644 --- a/test/pylib/rest_client.py +++ b/test/pylib/rest_client.py @@ -128,7 +128,7 @@ class UnixRESTClient(RESTClient): def __init__(self, sock_path: str): # NOTE: using Python requests style URI for Unix domain sockets to avoid using "localhost" # host parameter is ignored but set to socket name as convention - self.uri_scheme: str = "http+unix" + self.uri_scheme: str = "http" self.default_host: str = f"{os.path.basename(sock_path)}" self.connector = UnixConnector(path=sock_path)