mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 09:21:16 +00:00
test: use a portable producer for HTTP/3 cleanup
This commit is contained in:
1 parent
25f50eea02
commit
a9882a58b2
1 file changed
+9
-5
@@ -375,11 +375,15 @@ test("dispatch reverses origin completion; client and capture may arrive in othe
|
||||
test("cleanup verifies and retires a separately owned producer group", async () => {
|
||||
const root = await mkdtemp(join(tmpdir(), "rea-http3-group-"));
|
||||
const runId = randomUUID();
|
||||
const child = spawn("/usr/bin/sleep", ["60"], {
|
||||
detached: true,
|
||||
env: { ...process.env, REA_PROCESS_RUN_ID: runId },
|
||||
stdio: "ignore",
|
||||
});
|
||||
const child = spawn(
|
||||
process.execPath,
|
||||
["--eval", "setInterval(() => {}, 1000)"],
|
||||
{
|
||||
detached: true,
|
||||
env: { ...process.env, REA_PROCESS_RUN_ID: runId },
|
||||
stdio: "ignore",
|
||||
},
|
||||
);
|
||||
let primaryError;
|
||||
let cleaned = false;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user