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:
parent
f3646e0dfd
commit
b4a4e770cf
2 changed files with 3 additions and 2 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue