Skip to content

Commit 51d3439

Browse files
Michaelclaude
andcommitted
fix(ci): add process.exit to graphlens-integration test
Root cause: graphlens-integration.test.cjs imports council.js which starts MCP servers, leaving event loop alive and preventing test suite from exiting. This caused the test suite to hang after completing all tests, triggering CI timeout after 22+ minutes (tests actually complete in ~7 seconds). Impact: Test suite now completes in 7s instead of hanging indefinitely. Evidence: - Local test run hung at graphlens-integration completion (backend/tests/graphlens-integration.test.cjs:140) - Timeout testing showed test completes but process never exits - Adding process.exit(0) resolves hang: 88 tests now complete in 6.9s References: - workspace/docs/Obsidian-v2/plans/active/TEST-PARALLELIZATION-IMPLEMENTATION.md - workspace/docs/Obsidian-v2/daily/2025-11-01-GITHUB-ISSUES-ANALYSIS.md 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7de3276 commit 51d3439

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

backend/tests/graphlens-integration.test.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,6 @@ console.log(' 2. Enable flags: ENABLE_GRAPHLENS_CONTENT=true ENABLE_GRAPHLENS_A
138138
console.log(' 3. Trigger agent: curl -X POST http://localhost:8791/chat -d \'{"prompt": "@marketing test"}\'');
139139
console.log(' 4. Watch live-dashboard.cjs for real-time GraphLens events');
140140
console.log();
141+
142+
// Exit explicitly to avoid hanging (council.js imports start MCP servers)
143+
process.exit(0);

0 commit comments

Comments
 (0)