Test: the request.json write is gated, with the lease lost the moment the worker is healthy

The stub marks its first healthy answer; the stdout line it prints before ready
had been taking the lease through the log-sink gate first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-24 03:57:06 +02:00
commit b4a4e770cf
2 changed files with 3 additions and 2 deletions

View file

@ -874,7 +874,7 @@ const losses = [
{ when: "artifacts/*/meta.json", absent: ["logs", "embeddings"] },
{ when: "logs", absent: ["embeddings"] },
{ when: "embeddings", absent: ["logs/worker.log"] },
{ when: "embeddings/stub-spawns.log", absent: ["artifacts/*/request.json", "jobs/*"] },
{ when: "embeddings/stub-healthy", absent: ["artifacts/*/request.json", "jobs/*"] },
];
for (const { when, absent } of losses) {
test(`a request is stopped at its next write when the lease goes at ${when}`, async () => {