Skip to content

Commit 3d8614a

Browse files
committed
test(services): pin the README's in-memory-history sentence on the replay path (#9633)
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y26DJEHSBhhAQ6wwfsHNza
1 parent 7a897ae commit 3d8614a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/services/service-job/src/db-job-adapter.test.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,11 @@ describe('DbJobAdapter — replay() honours recordRuns (#9633)', () => {
293293
expect(ran).toBe(1);
294294
expect(job().run_count).toBe(1);
295295
expect(job().last_status).toBe('success');
296+
// README.md's options table — "`false` keeps the in-memory history only" —
297+
// was falsified by exactly the replay row this case now forbids. Pinned
298+
// here rather than restated in prose: the durable table is empty and the
299+
// in-memory history the sentence promises is still there.
300+
expect((await adapter.getExecutions('quiet')).length).toBeGreaterThan(0);
296301
});
297302

298303
it('recordRuns: false — the terminal-status arm writes nothing either, and leaves no dangling row', async () => {

0 commit comments

Comments
 (0)