mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-07 16:35:48 +01:00
test(evals): retain readonly company deadline typing
Set synthetic invalid context values without assigning to the readonly production contract. Runtime observer behavior is unchanged. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
2387c95569
commit
9ab0f951a5
1 file changed
+1
-1
@@ -29,7 +29,7 @@ it.each([1, 2, 3])("does not reset the original deadline for late turn %s", asyn
|
||||
expect(f.ctx.observationDeadlineAt).toBe(start + 10_000);
|
||||
});
|
||||
it.each([undefined, NaN, Infinity, start, start - 1])("rejects missing, invalid or exhausted original deadline %s before observing", async deadline => {
|
||||
const f = fixture(); f.ctx.observationDeadlineAt = deadline;
|
||||
const f = fixture(); Object.assign(f.ctx, { observationDeadlineAt: deadline });
|
||||
await expect(waitForCompanySettingsTurn(f.ctx)).rejects.toThrow(/Original identity observation budget/);
|
||||
expect(f.refreshIssue).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user