From: John David Anglin Date: Sat, 8 Dec 2018 20:15:13 +0000 (-0500) Subject: FTBFS: timeouts in some archs X-Git-Tag: archive/raspbian/0.21.0-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5a823f0fa885b0204e2c928bf747da86d098a90d;p=asyncpg.git FTBFS: timeouts in some archs Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915970 Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=915970;filename=asyncpg-timeout-hppa.diff;msg=5 Gbp-Pq: Name 0002-FTBFS-timeouts-in-some-archs.patch --- diff --git a/tests/test_introspection.py b/tests/test_introspection.py index eb3258f..7e671d1 100644 --- a/tests/test_introspection.py +++ b/tests/test_introspection.py @@ -12,7 +12,7 @@ from asyncpg import _testbase as tb from asyncpg import connection as apg_con -MAX_RUNTIME = 0.1 +MAX_RUNTIME = 0.25 class SlowIntrospectionConnection(apg_con.Connection): diff --git a/tests/test_pool.py b/tests/test_pool.py index e51923e..17da465 100644 --- a/tests/test_pool.py +++ b/tests/test_pool.py @@ -28,7 +28,7 @@ if os.environ.get('TRAVIS_OS_NAME') == 'osx': # Travis' macOS is _slow_. POOL_NOMINAL_TIMEOUT = 0.5 else: - POOL_NOMINAL_TIMEOUT = 0.1 + POOL_NOMINAL_TIMEOUT = 0.5 class SlowResetConnection(pg_connection.Connection): @@ -392,7 +392,7 @@ class TestPool(tb.ConnectedTestCase): task = self.loop.create_task(worker()) # Let the worker() run. - await asyncio.sleep(0.1) + await asyncio.sleep(0.4) # Cancel the worker. task.cancel() # Wait to make sure the cleanup has completed.