Skip to content

Commit b624b07

Browse files
committed
Fixed RuntimeError in asyncio test_create_single_connection_client_from_url()
The test is synchronous but really requires a running event loop.
1 parent 09de0dd commit b624b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_asyncio/test_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ async def dummy_method(*args, **kwargs):
303303

304304

305305
@pytest.mark.onlynoncluster
306-
def test_create_single_connection_client_from_url():
306+
async def test_create_single_connection_client_from_url():
307307
client = Redis.from_url("redis://localhost:6379/0?", single_connection_client=True)
308308
assert client.single_connection_client is True
309309

0 commit comments

Comments
 (0)