mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +00:00
test(logging): stabilize log reader cache refresh coverage
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user