]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Make synchronous test async to avoid asyncio error
authorH <juana.galan@outlook.com>
Thu, 10 Feb 2022 23:07:18 +0000 (23:07 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 11 Feb 2022 00:11:51 +0000 (01:11 +0100)
tests/pool/test_pool_async.py

index 22692c320122afed08fc4b0a22928530ac7faaf4..dcfd2329574ead192072e002ee62e8a1700a84b9 100644 (file)
@@ -837,7 +837,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)]
     rnds.sort()
     assert 27 <= min(rnds) <= 28