0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

test(mcp): stop the libsql suite leaking writes past Mastra shutdown

Core deletes a background task's workflow run unawaited once the run settles,
so a run still in flight at shutdown deletes after storage closes and rejects
unhandled. Teardown now cancels and waits for this instance's runs first, and
the lost-queue test kills a child server instead of shutting one down, which
is the failure it describes. Also waits for the expiry abort instead of
racing the projection.

Co-Authored-By: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
Daniel Lew 2026-10-26 17:59:08 -04:00
commit 6a6c484800
4 changed files with 79 additions and 22 deletions