Skip to content

Commit c28d43c

Browse files
Fix aioredis timeout issue (#617)
1 parent 1f64479 commit c28d43c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def redis_server( # type: ignore[misc] # No docker types.
104104
conn = aioredis.from_url("redis://{}:{}".format(host, port)) # type: ignore[no-untyped-call] # noqa: B950
105105
loop.run_until_complete(conn.set("foo", "bar"))
106106
break
107-
except ConnectionRefusedError:
107+
except ConnectionError:
108108
time.sleep(delay)
109109
delay *= 2
110110
else:

0 commit comments

Comments
 (0)