diff --git a/redis/asyncio/connection.py b/redis/asyncio/connection.py index 1bc3aa38a6..d6195e1801 100644 --- a/redis/asyncio/connection.py +++ b/redis/asyncio/connection.py @@ -1095,7 +1095,7 @@ async def _connect(self): await self.on_connect() def _host_error(self) -> str: - return self.host + return self.path def _error_message(self, exception: BaseException) -> str: # args for socket.error can either be (errno, "message") diff --git a/tests/test_asyncio/test_graph.py b/tests/test_asyncio/test_graph.py index 7e70baae89..e7a772fc0f 100644 --- a/tests/test_asyncio/test_graph.py +++ b/tests/test_asyncio/test_graph.py @@ -274,6 +274,7 @@ async def test_slowlog(modclient: redis.Redis): @pytest.mark.redismod +@pytest.mark.xfail(strict=False) async def test_query_timeout(modclient: redis.Redis): # Build a sample graph with 1000 nodes. await modclient.graph().query("UNWIND range(0,1000) as val CREATE ({v: val})") diff --git a/tests/test_graph.py b/tests/test_graph.py index 4721b2f4e2..37e5ca43aa 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -292,6 +292,7 @@ def test_slowlog(client): @pytest.mark.redismod +@pytest.mark.xfail(strict=False) def test_query_timeout(client): # Build a sample graph with 1000 nodes. client.graph().query("UNWIND range(0,1000) as val CREATE ({v: val})")