fix: use in-memory SQLite for handler tests to fix CI timeout #93

Merged
sneak merged 1 commits from fix/test-timeout-90 into main 2026-03-25 20:11:34 +01:00

1 Commits

Author SHA1 Message Date
clawbot
13b1d083cf fix: use in-memory SQLite for handler tests to fix CI timeout
All checks were successful
check / check (push) Successful in 1m5s
Switch handler test databases from file-backed SQLite (with
WAL mode and temp dir) to in-memory SQLite. This eliminates
filesystem I/O overhead per test, cutting handler test time
roughly in half.

Before: ~20s in Docker (ARM), exceeding 30s timeout on CI
After:  ~10s in Docker (ARM), well within 30s timeout

Also consolidate the two test server constructors
(newTestServer and newTestServerWithOper) into a shared
newTestServerWith helper, removing ~50 lines of duplicate
setup code.

closes #90
2026-03-24 18:34:52 -07:00