From 385a7e5733ef27b07917487f568e67666afd2c32 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 24 Oct 2026 21:32:26 +0200 Subject: [PATCH] Test: the signal comes after the export's first line is logged Co-Authored-By: Claude Opus 5.5 --- scripts/test-vili-daemon.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/test-vili-daemon.mjs b/scripts/test-vili-daemon.mjs index 5e42edf..14560a0 100644 --- a/scripts/test-vili-daemon.mjs +++ b/scripts/test-vili-daemon.mjs @@ -1515,6 +1515,8 @@ test("what a stopping export still prints is not logged, and it is killed when i const pending = generate(daemon, exportRequest({ clipName: "hang", exportTimeoutMs: 60000 })); pending.catch(() => {}); const run = await until(() => exportStarts(daemon)[0], "the export to start"); + const logFile = path.join(daemon.stateRoot, "logs", "export.log"); + await until(() => existsSync(logFile) && readFileSync(logFile, "utf8").includes("stub-blender-stderr hang"), "the export's first line to be logged"); daemon.proc.kill("SIGTERM"); await until(() => daemon.proc.exitCode !== null, "the daemon to exit", 30); assert.equal(daemon.proc.exitCode, 0);