Skip to content

Commit 06f9b81

Browse files
committed
test(plugin-security): the not-found pin deletes as the system
Claude-Session: https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt Co-authored-by: Claude <noreply@anthropic.com>
1 parent b65177e commit 06f9b81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/plugins/plugin-security/src/ownership-claim-race-sqlite.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('[ADR-0142 D4] the unit around the engine body keeps the gate\'s refusa
152152
it('a row that is gone still answers 404 RECORD_NOT_FOUND', async () => {
153153
const engine = await boot({ sharingModel: 'private', beforeHook: true });
154154
await seed(engine, { id: 'case_gone', name: 'parked', owner_id: null, queue: QUEUE });
155-
await engine.delete(CASE, { where: { id: 'case_gone' } } as never, SYS);
155+
await engine.delete(CASE, { where: { id: 'case_gone' }, context: { isSystem: true } } as never);
156156
const err = await claim(engine, 'case_gone', A).then(() => undefined, (e: unknown) => e);
157157
expect(err).toMatchObject({ code: 'RECORD_NOT_FOUND', status: 404 });
158158
});

0 commit comments

Comments
 (0)