[claude] Add connection leak and pragma unit tests for db_pool.py (#944) #1001
Reference in New Issue
Block a user
Delete Branch "claude/issue-944"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #944
Summary
TestConnectionLeaksclass (5 tests): verifies connections are not leaked after close, context manager exit, exceptions, across threads, and through repeated open/close cyclesTestPragmaApplicationclass (5 tests): verifies WAL journal mode, busy_timeout, and cache_size pragmas are applied and scoped per-connection — matching the patterns used throughout the codebaseAll 31 db_pool tests pass (up from 21).