From: H Date: Thu, 10 Feb 2022 23:07:18 +0000 (+0000) Subject: Make synchronous test async to avoid asyncio error X-Git-Tag: pool-3.1.1~9^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faf2f9b4d6531b1b71fab720f36d9b06cb91450d;p=thirdparty%2Fpsycopg.git Make synchronous test async to avoid asyncio error --- diff --git a/tests/pool/test_pool_async.py b/tests/pool/test_pool_async.py index 79316106f..436e5dcb2 100644 --- a/tests/pool/test_pool_async.py +++ b/tests/pool/test_pool_async.py @@ -924,7 +924,7 @@ async def test_bad_resize(dsn, min_size, max_size): await p.resize(min_size=min_size, max_size=max_size) -def test_jitter(): +async def test_jitter(): rnds = [pool.AsyncConnectionPool._jitter(30, -0.1, +0.2) for i in range(100)] assert 27 <= min(rnds) <= 28 assert 35 < max(rnds) < 36