Fix db lock tests (#665)

* skip db lock check in regtests

* revert?

* try this

* do not dispose conftests

* remove return

* test this

* try auto

* dispose stuff

* try uri=true

* remove the other flag

* move test

* reduce tests

* reduce more

* keep one

* skip on github?

* only skip in regtest

* trigger again

* restore cashu/mint/ledger.py
This commit is contained in:
callebtc
2024-11-05 13:47:31 +01:00
committed by GitHub
parent 9456809a21
commit 80ff0f1a7c
2 changed files with 22 additions and 11 deletions

View File

@@ -228,14 +228,11 @@ class Database(Compat):
)
else:
logger.error(f"Error in session trial: {trial} ({random_int}): {e}")
raise e
raise
finally:
logger.trace(f"Closing session trial: {trial} ({random_int})")
await session.close()
# if not inherited:
# logger.trace("Closing session")
# await session.close()
# self._connection = None
raise Exception(
f"failed to acquire database lock on {lock_table} after {timeout}s and {trial} trials ({random_int})"
)