From 3d80c7f0b5b2cf8cc9c40283c9964409d7e8415a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 24 Oct 2026 21:25:51 +0200 Subject: [PATCH] Test: wait for the version probe's answer, not its start, before asking for an export Co-Authored-By: Claude Opus 5.5 --- scripts/test-vili-daemon.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/test-vili-daemon.mjs b/scripts/test-vili-daemon.mjs index 60019ad..5e42edf 100644 --- a/scripts/test-vili-daemon.mjs +++ b/scripts/test-vili-daemon.mjs @@ -1531,7 +1531,8 @@ test("losing the lease kills a running export within a second and records nothin const daemon = await idunnDaemon({ leased: true }); try { await until(() => existsSync(path.join(daemon.stateRoot, "vili.service.cc")), "the service store", 10); - await until(() => daemon.starts().length === 1, "the version probe, run once the lease was held"); + await until(async () => (await backendOf(daemon)).blender === "Blender 0.0.0 (stub)", "the version probe, run once the lease was held"); + assert.equal(daemon.starts().length, 1); assert.equal(existsSync(path.join(daemon.stateRoot, "logs")), false, "the probe writes nothing to the state root"); const pending = generate(daemon, exportRequest({ clipName: "slow" })); const ended = pending.then((answer) => { throw new Error(`the job ended before its export started: ${answer.status} ${answer.raw.slice(0, 300)}`); });