Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(repair): the held-window progress expectation includes the provenance phase (GBRA-133)

garrytan16384d0f2f3e
diff --git a/test/repair-file-drift-held-window-gbra133.test.ts b/test/repair-file-drift-held-window-gbra133.test.ts
index 60499e0a9e..d51c2747ba 100644
--- a/test/repair-file-drift-held-window-gbra133.test.ts
+++ b/test/repair-file-drift-held-window-gbra133.test.ts
@@ -121,7 +121,7 @@ for (const backend of testBackends()) describe(`GBRA-133: a held file-drift prev
heartbeat() {}, finish: () => ticks.push('finish'), child: () => progress } as unknown as ProgressReporter;
const first = await run(f.sourceId, { deadline: Date.now() - 1, progress });
expect(slugsOf(first)).toEqual([slugs[0]]);
- expect(ticks).toEqual(['start repair.file_drift.preview 3', `tick ${slugs[0]}`, 'finish']);
+ expect(ticks).toEqual(['start repair.file_drift.provenance 3', 'finish', 'start repair.file_drift.preview 3', `tick ${slugs[0]}`, 'finish']);
expect(window(first)).toMatchObject({ previewed: 1, remaining: 2, complete: false });
expect(first.residuals).toMatchObject({ after_window: 2 });
const cursor = window(first).next_cursor!;