mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
Merge pull request #49770 from BerriAI/litellm_rc109_ledger_fault_injection
test(integration): fix rc109 ledger transaction expiry
This commit is contained in:
commit
26654fc154
1 changed files with 2 additions and 2 deletions
|
|
@ -325,11 +325,11 @@ async def test_cost_requires_an_existing_outbound_source(writer: _Writer, ledger
|
|||
async def test_interruption_rolls_back_or_retry_recognizes_commit(
|
||||
writer: _Writer, ledger_database: str, failure: str
|
||||
) -> None:
|
||||
client, store = writer
|
||||
_, store = writer
|
||||
|
||||
@asynccontextmanager
|
||||
async def interrupted() -> AsyncGenerator[Prisma]:
|
||||
async with client.writer_db.tx() as tx:
|
||||
async with store._transaction() as tx:
|
||||
yield tx
|
||||
if failure == "before_commit":
|
||||
raise RuntimeError("injected pre-commit failure")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue