diff --git a/apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts b/apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts index 4d383a7dd16b..1b6f23b08ebc 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"), );