openclaw/docs/help/testing
Peter Steinberger 8d7ec4256a
fix(test): join state worker retirement before raw database access in fixtures (#160090)
Worker-backed state writes leave a worker holding an idle state-database
connection. The synchronous closeOpenClawStateDatabaseForTest() only starts
that worker's retirement, whose last-connection checkpoint and WAL delete then
land at an arbitrary later time. Fixtures that opened the same database raw or
snapshotted/copied its files right after could hit SQLITE_BUSY or see bytes
change underneath them.

Await closeOpenClawStateDatabaseAsync() at every site a Testbox custody probe
showed exposed (same database, live worker custody), make
seedLegacyV15ProposalRows() async for the same reason, pin the owner contract
in the database-worker WAL test, and document the rule for fixture authors.
2026-09-28 05:59:41 +00:00
..
contracts.md
docker.md chore(ci): catch Node spawns in Bun-only installs (#159439) 2026-09-27 16:28:36 -07:00
live-workflows.md improve: profile concurrent Gateway sessions with live OpenAI (#154845) 2026-09-21 13:33:16 +00:00
qa-runners.md fix(qa): keep Telegram round-trip checks on the exercised route (#159284) 2026-09-27 16:26:01 -07:00
suites.md fix(test): prepare runtime for root-directory test runs (#159723) 2026-09-27 16:00:12 -07:00
writing-tests.md fix(test): join state worker retirement before raw database access in fixtures (#160090) 2026-09-28 05:59:41 +00:00