Skip to content

Commit c5be421

Browse files
ualtinokAlfonso
andcommitted
test(plugin): raise Bun test timeout to 30s so SQLite locks surface first
Extracted from PR #338 (Cole Leavitt). Bun's default 5s test timeout and SQLite's production 5s busy_timeout currently hide a real lock wait behind the same wall-clock cutoff, so a shared-DB contention surfaces as an unattributable Bun timeout instead of a visible SQLITE_BUSY error. Raising the test timeout to 30s lets the lock error report first. This is observability work for #312, NOT a fix: it does not isolate per-file databases or change the test busy_timeout, so the shared context.db contention remains open. Co-Authored-By: Cole Leavitt <[email protected]> Co-Authored-By: Alfonso <[email protected]>
1 parent 9510e68 commit c5be421

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/plugin/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"build:tui": "bun scripts/build-tui.ts",
4040
"check:tui-compiled": "bun run build:tui && git diff --exit-code -- src/tui-compiled && test -z \"$(git status --porcelain -- src/tui-compiled)\"",
4141
"typecheck": "tsc -p ../retina-local-fs/tsconfig.build.json && tsc --noEmit && tsc -p tsconfig.scripts.json",
42-
"test": "bun test",
42+
"test": "bun test --timeout 30000",
4343
"lint": "biome check .",
4444
"lint:fix": "biome check --write .",
4545
"format": "biome format --write .",

0 commit comments

Comments
 (0)