From cd52eb65cc363788c5c6948836b5b87a0fcc83b9 Mon Sep 17 00:00:00 2001 From: 9qeklajc Date: Mon, 24 Aug 2026 23:40:14 +0200 Subject: [PATCH] test: widen pool-pressure timing margin to de-flake balance pool test --- tests/unit/test_fetch_all_balances.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_fetch_all_balances.py b/tests/unit/test_fetch_all_balances.py index ceeca1e4..89813cac 100644 --- a/tests/unit/test_fetch_all_balances.py +++ b/tests/unit/test_fetch_all_balances.py @@ -339,7 +339,7 @@ async def test_slow_mints_do_not_exhaust_a_single_connection_pool( f"sqlite+aiosqlite:///{tmp_path / 'pool-pressure.db'}", pool_size=1, max_overflow=0, - pool_timeout=0.2, + pool_timeout=0.5, ) async with engine.begin() as connection: await connection.run_sync(SQLModel.metadata.create_all) @@ -350,7 +350,7 @@ async def test_slow_mints_do_not_exhaust_a_single_connection_pool( yield session async def slow_filter(proofs, wallet): # type: ignore[no-untyped-def] - await asyncio.sleep(0.3) + await asyncio.sleep(1.0) return proofs try: