Skip to content

Commit e5a2b50

Browse files
committed
test(cli): the verified control asserts the plan before the marker read
Claude-Session: https://claude.ai/code/session_01LmjU2x1faLZ39DVTFyVca6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent acb4726 commit e5a2b50

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/cli/src/commands/migrate/plan.apply-limit.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ describe('#24925 CONTROL: the plan as it always was', () => {
453453
boot.mockResolvedValueOnce(ceremonyStackWith([INDEX, ORG_JOB, LEGACY, ORG_SECRET], engine).stack);
454454
const { lines, exitCode } = await run([]);
455455
expect(exitCode, lines.join('\n')).toBe(0);
456-
expect(engine.findOne).toHaveBeenCalledTimes(1);
457456
expectTodaysPlan(lines, [INDEX, ORG_JOB, LEGACY, ORG_SECRET]);
457+
// …and the marker WAS read: this control is not passing for want of a read.
458+
expect(engine.findOne).toHaveBeenCalledTimes(1);
458459
}, CASE_TIMEOUT_MS);
459460

460461
it('no organization_id drop: the plan is the one it always was, and the marker is never read', async () => {

0 commit comments

Comments
 (0)