Test: the rest-fbx lease test waits for the Blender probe, so the lease is what stops it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-24 23:19:02 +02:00
commit 3574efe92e

View file

@ -1830,6 +1830,7 @@ test("the lease goes between rest-fbx's directory and its copy: nothing is copie
const daemon = await idunnDaemon({ leased: true, loseWhenExists: "artifacts/*", python: rest.python });
try {
await until(() => existsSync(path.join(daemon.stateRoot, "vili.service.cc")), "the service store", 10);
await until(async () => /^Blender /.test((await backendOf(daemon)).blender), "the Blender probe");
const answer = await restRequest(daemon);
assert.equal(answer.status, 503);
assert.equal(answer.body.code, "write-lease-lost");