test(logging): stabilize log reader cache refresh coverage

This commit is contained in:
Tam Nhu Tran
2026-04-08 16:06:45 -04:00
parent 6e39f338ce
commit a47cf022c6
@@ -113,6 +113,8 @@ describe('log reader', () => {
})
)}\n`
);
const futureTimestamp = new Date(Date.now() + 10_000);
fs.utimesSync(currentLogPath, futureTimestamp, futureTimestamp);
expect(readLogEntries({ limit: 1 }).map((entry) => entry.id)).toEqual(['disk-new']);
expect(readSpy).toHaveBeenCalledTimes(2);