From b6b30dbe0706fbd1e4d2f7193b6fef486142faf3 Mon Sep 17 00:00:00 2001 From: John David Anglin Date: Sat, 8 Dec 2018 15:15:13 -0500 Subject: [PATCH] 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 --- tests/test_introspection.py | 2 +- tests/test_pool.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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. -- 2.30.2