fix(server): registry test stubs no longer outlive the test run (#15457)
Signed-off-by: Yordis Prieto <[email protected]>
This commit is contained in:
1 parent
737993303d
commit
8fb068c498
1 file changed
+8
-1
@@ -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"),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user