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
from asyncpg import connection as apg_con
-MAX_RUNTIME = 0.1
+MAX_RUNTIME = 0.25
class SlowIntrospectionConnection(apg_con.Connection):
# 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):
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.