test: widen pool-pressure timing margin to de-flake balance pool test

This commit is contained in:
9qeklajc
2026-08-24 23:40:14 +02:00
parent 16afd664a1
commit cd52eb65cc
+2 -2
View File
@@ -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: