Skip to content

Commit e9e3bfb

Browse files
committed
Add tests for unix socket with relative path
Signed-off-by: Salvatore Mesoraca <[email protected]>
1 parent 65b5c04 commit e9e3bfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_connection.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,3 +341,10 @@ def test_unix_socket_connection_failure():
341341
str(e.value)
342342
== "Error 2 connecting to unix:///tmp/a.sock. No such file or directory."
343343
)
344+
345+
346+
def test_parsing_unix_socket_relative_path():
347+
parsed = parse_url("unix:./valkey.sock", False)
348+
assert parsed["path"] == "./valkey.sock"
349+
assert parsed["connection_class"] is UnixDomainSocketConnection
350+
assert len(parsed) == 2

0 commit comments

Comments
 (0)