From 8fb068c4982fc50a2a2f57c3b6fd4731735cf0bf Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sun, 4 Oct 2026 00:13:42 -0400 Subject: [PATCH] fix(server): registry test stubs no longer outlive the test run (#15457) Signed-off-by: Yordis Prieto --- .../provider/Layers/ProviderInstanceRegistryLive.test.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts b/apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts index 4d383a7dd16badd54b3bc3240cd3281aa0c923ef..1b6f23b08ebced412a26247df3c64056bbf5f99b 100644 --- a/apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts +++ b/apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts @@ -223,7 +223,14 @@ const makeTildeProviderFixtures = Effect.fn( " },", ' }) + "\\n");', "});", - "setInterval(() => {}, 1_000);", + "// Stay alive for follow-up control requests, but never outlive the", + "// parent: the probe aborts the SDK without awaiting the child, so an", + "// unconditional interval would strand this process until reboot.", + "const keepAlive = setInterval(() => {}, 1_000);", + 'lines.on("close", () => {', + " clearInterval(keepAlive);", + " process.exit(0);", + "});", "", ].join("\n"), ); -- 2.54.0