fix(test): завершать интеграционный набор MCP после teardown

После всех проверок и закрытия ресурсов процесс оставался жить 15+ минут из-за
чужого MessagePort (таймеров и сокетов не осталось). Явный выход после сброса вывода.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
DenozordecandClaude Opus 5.5 committed 2026-11-19 11:06:30 +07:00
1 parent 6584644112
commit 5d380f9ae9
1 file changed
+3
@@ -3902,4 +3902,7 @@ if (softFailures.length) {
console.error(`✗ ${softFailures.length} acceptance check(s) failed (MCP_INTEGRATION_CONTINUE=1):\n` + softFailures.map(line => " - " + line).join("\n"))
process.exitCode = 1
}
// shortcut: after teardown a referenced MessagePort (not ours: no timers/sockets remain) kept the process alive
// for 15+ minutes; exit explicitly once output is flushed. Find the port's owner if teardown must prove a clean loop.
process.stderr.write("", () => process.stdout.write("", () => process.exit()))