From 5d380f9ae91ffc16577f121b52eab8354aa41b1a Mon Sep 17 00:00:00 2001 From: Denozordec Date: Thu, 19 Nov 2026 11:06:30 +0700 Subject: [PATCH] =?UTF-8?q?fix(test):=20=D0=B7=D0=B0=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D1=88=D0=B0=D1=82=D1=8C=20=D0=B8=D0=BD=D1=82=D0=B5=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=BE=D0=BD=D0=BD=D1=8B=D0=B9=20=D0=BD=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=20MCP=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20tea?= =?UTF-8?q?rdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit После всех проверок и закрытия ресурсов процесс оставался жить 15+ минут из-за чужого MessagePort (таймеров и сокетов не осталось). Явный выход после сброса вывода. Co-Authored-By: Claude Opus 5.5 --- backend/src/modules/mcp/integration.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/modules/mcp/integration.test.ts b/backend/src/modules/mcp/integration.test.ts index e78419c1..1dc313a2 100644 --- a/backend/src/modules/mcp/integration.test.ts +++ b/backend/src/modules/mcp/integration.test.ts @@ -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()))