Skip to content

Commit fe816aa

Browse files
committed
Skip concurrent-commands test on non-pooled connections
1 parent ce909a8 commit fe816aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_asyncio/test_connection.py

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ async def test_socket_param_regression(r):
6464

6565

6666
async def test_can_run_concurrent_commands(r):
67+
if getattr(r, "connection", None) is not None:
68+
# Concurrent commands are only supported on pooled or cluster connections
69+
# since there is no synchronization on a single connection.
70+
pytest.skip("pool only")
6771
assert await r.ping() is True
6872
assert all(await asyncio.gather(*(r.ping() for _ in range(10))))
6973

0 commit comments

Comments
 (0)