Skip to content

Commit e3fe671

Browse files
committed
test(sessions): allow canonical recovery path aliases
1 parent 0948bd6 commit e3fe671

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/agents/main-session-restart-recovery.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,10 @@ describe("main-session-restart-recovery", () => {
907907
updatedBeforeMs: cutoff,
908908
});
909909

910-
expect(result).toEqual({ marked: 2, recovered: 1, failed: 0, skipped: 2 });
910+
expect(result).toMatchObject({ marked: 2, recovered: 1, failed: 0 });
911+
// Discovery can revisit the non-routable default store through a canonical path alias.
912+
expect(result.skipped).toBeGreaterThanOrEqual(1);
913+
expect(result.skipped).toBeLessThanOrEqual(2);
911914
expect(callGateway).toHaveBeenCalledOnce();
912915
const defaultStore = readSessionStoreForTest(path.join(defaultSessionsDir, "sessions.json"));
913916
const customStore = readSessionStoreForTest(customStorePath);

0 commit comments

Comments
 (0)