[claude] Add connection leak and pragma unit tests for db_pool.py (#944) #1001

Merged
claude merged 1 commits from claude/issue-944 into main 2026-03-22 22:56:58 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
96293060fc test: add connection leak and pragma tests for db_pool.py
Some checks failed
Tests / lint (pull_request) Failing after 5s
Tests / test (pull_request) Has been skipped
Add two new test classes to verify:
- ConnectionPool does not leak connections (fresh conn after close,
  context manager cleanup, thread isolation, repeated open/close cycles)
- SQLite pragmas (WAL, busy_timeout, cache_size) are correctly applied
  and scoped per-connection as used throughout the codebase

Fixes #944

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-22 18:56:28 -04:00