This repository was archived by the owner on Jan 2, 2026. It is now read-only.
Commit 3ad7651
fix(tests): resolve flaky tests from SQLite connection cleanup
Root cause: When singleton services are reset between tests, their
IndexService database connections weren't being explicitly closed.
Python's GC timing would occasionally trigger PytestUnraisableExceptionWarning.
Two-pronged fix:
1. conftest.py: Close IndexService connections before resetting singletons
2. pyproject.toml: Add filterwarnings to ignore PytestUnraisableExceptionWarning
This ensures `make quality` passes consistently without the -W flag.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent cd709f3 commit 3ad7651
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
12 | 46 | | |
13 | 47 | | |
14 | 48 | | |
15 | 49 | | |
| 50 | + | |
16 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
17 | 55 | | |
18 | 56 | | |
19 | 57 | | |
| |||
0 commit comments