Skip to content

Commit 35819df

Browse files
committed
test(platform-objects): the boot-attestation pins carry the third creation-attested id
The timing and deferral cases in plugin.test.ts assert the attested set as a sorted literal list or a literal count; both move with the new member, and the contradicted-gate case now attests the other two ids in array order. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M59rPZZFzqhfMUPFqqZTkf
1 parent ad313cc commit 35819df

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

packages/platform-objects/src/plugin.test.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ describe('PlatformObjectsPlugin: fresh-datastore attestation (#3438, ADR-0104)',
265265
await ctx._flush('app:seeded');
266266

267267
expect(engine.rows.map((r: any) => r.id).sort()).toEqual([
268+
'adr-0030-notification-event',
268269
'adr-0104-file-references',
269270
'adr-0104-value-shapes',
270271
]);
@@ -281,7 +282,7 @@ describe('PlatformObjectsPlugin: fresh-datastore attestation (#3438, ADR-0104)',
281282
await ctx._flush('app:seeded');
282283
await ctx._flushReady();
283284

284-
expect(engine.rows).toHaveLength(2);
285+
expect(engine.rows).toHaveLength(3);
285286
});
286287

287288
/**
@@ -307,7 +308,10 @@ describe('PlatformObjectsPlugin: fresh-datastore attestation (#3438, ADR-0104)',
307308
await ctx._flush('app:seeded');
308309
await ctx._flushReady();
309310

310-
expect(engine.rows.map((r: any) => r.id)).toEqual(['adr-0104-value-shapes']);
311+
expect(engine.rows.map((r: any) => r.id)).toEqual([
312+
'adr-0104-value-shapes',
313+
'adr-0030-notification-event',
314+
]);
311315
});
312316
});
313317

@@ -369,6 +373,7 @@ describe('PlatformObjectsPlugin: fresh-datastore attestation (#3438, ADR-0104)',
369373
await ctx._flush('app:seeded');
370374

371375
expect(engine.rows.map((r: any) => r.id).sort()).toEqual([
376+
'adr-0030-notification-event',
372377
'adr-0104-file-references',
373378
'adr-0104-value-shapes',
374379
]);
@@ -391,7 +396,7 @@ describe('PlatformObjectsPlugin: fresh-datastore attestation (#3438, ADR-0104)',
391396

392397
state.inFlight = 0; // app B settled
393398
await ctx._flush('app:seeded');
394-
expect(engine.rows).toHaveLength(2);
399+
expect(engine.rows).toHaveLength(3);
395400
});
396401

397402
/**
@@ -447,6 +452,7 @@ describe('PlatformObjectsPlugin: fresh-datastore attestation (#3438, ADR-0104)',
447452
await ctx._flushReady();
448453

449454
expect(engine.rows.map((r: any) => r.id).sort()).toEqual([
455+
'adr-0030-notification-event',
450456
'adr-0104-file-references',
451457
'adr-0104-value-shapes',
452458
]);
@@ -462,7 +468,7 @@ describe('PlatformObjectsPlugin: fresh-datastore attestation (#3438, ADR-0104)',
462468

463469
await ctx._flushReady();
464470

465-
expect(engine.rows).toHaveLength(2);
471+
expect(engine.rows).toHaveLength(3);
466472
});
467473

468474
/**

0 commit comments

Comments
 (0)