mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-04 11:01:16 +01:00
test(evals): mutate readonly context only through fixture setup
Keep the exhausted-budget negative while respecting the readonly public context type. No production observer or grader changes. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
bd4dc1f10b
commit
12e6def200
1 file changed
+1
-1
@@ -60,7 +60,7 @@ it("rejects invented inspection receipts and keeps other skill cases on their or
|
||||
expect(integratorSkillsCases.find(x=>x.scenarioId==="skills.explicit-restriction")!.oracleVersion).toBe("paperclip.chat-catalog.integrator.v1");
|
||||
});
|
||||
it("cannot extend an exhausted original case budget to inspect a finished artifact",async()=>{
|
||||
const f=fixture();f.ctx.observationDeadlineAt=Date.now()-1;
|
||||
const f=fixture();Object.assign(f.ctx,{observationDeadlineAt:Date.now()-1});
|
||||
await expect(inspectAuthoredSkill(f.ctx,f.state,f.o)).rejects.toThrow("budget");expect(f.events).toEqual([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user