Test: the signal comes after the export's first line is logged
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3d80c7f0b5
commit
385a7e5733
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue