Commit d98497e
fix: disable file sync in integration tests to prevent hanging
The MCP server lifespan starts a background file sync task when
sync_changes=True (the default). This task runs indefinitely, causing
integration tests to hang.
Fix: Set sync_changes=False in the test app_config fixture. This is the
proper solution because:
- It's test configuration, not production code hacking
- Integration tests don't need file sync - they test MCP tools/API
- The lifespan works correctly, it just won't start the blocking task
Also includes minor formatting cleanup in app.py.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>1 parent 554c3d7 commit d98497e
3 files changed
Lines changed: 6 additions & 3 deletions
File tree
- src/basic_memory/cli
- test-int
- mcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
0 commit comments