Relationships
#4991 ThemeToggle_test flakes with database is locked reading localStorage during verify-build
Opened by zack · 11/22/2026· Shipped 11/22/2026
In verify-build run d67be076 (commit 1334c42ed on branch issue-4912, a change that touches nothing under packages/), packages/dashboard/src/components/ThemeToggle_test.tsx failed once with 'Error: database is locked', thrown from localStorage.getItem in ThemeToggle.tsx:32 while renderToStaticMarkup rendered the component. A rerun of verify-build on the same commit (run fb5649f0) passed every test. Deno backs localStorage with a SQLite file, so a parallel test shard or a concurrent verification on the same host appears able to hold the lock. Expected: the test does not depend on shared persistent storage (stub localStorage, or render without reading it), so verify-build does not fail on contention.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.