FTBFS: timeouts in some archs
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 8 Dec 2018 20:15:13 +0000 (15:15 -0500)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 31 Mar 2020 16:25:13 +0000 (17:25 +0100)
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
tests/test_pool.py

index eb3258f9399478ab37e90f123d9c40070d378b66..7e671d1625b364309b4f56ec7d4cfd9c320ee591 100644 (file)
@@ -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):
index e51923e4097297be3f58d9bd12013fa3177b7be5..17da465333bb0e11c323ac7f380caf87dba3f4be 100644 (file)
@@ -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.