Skip to content

Commit 8fb068c

Browse files
authored
fix(server): registry test stubs no longer outlive the test run (pingdotgg#15457)
Signed-off-by: Yordis Prieto <[email protected]>
1 parent 7379933 commit 8fb068c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎apps/server/src/provider/Layers/ProviderInstanceRegistryLive.test.ts‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,14 @@ const makeTildeProviderFixtures = Effect.fn(
223223
" },",
224224
' }) + "\\n");',
225225
"});",
226-
"setInterval(() => {}, 1_000);",
226+
"// Stay alive for follow-up control requests, but never outlive the",
227+
"// parent: the probe aborts the SDK without awaiting the child, so an",
228+
"// unconditional interval would strand this process until reboot.",
229+
"const keepAlive = setInterval(() => {}, 1_000);",
230+
'lines.on("close", () => {',
231+
" clearInterval(keepAlive);",
232+
" process.exit(0);",
233+
"});",
227234
"",
228235
].join("\n"),
229236
);

0 commit comments

Comments
 (0)