test(ci): stabilize file watcher first-read timing

This commit is contained in:
777genius 2026-04-17 23:12:01 +03:00
parent 94f41ed5a5
commit da9cb93e93

View file

@ -765,8 +765,13 @@ describe('FileWatcher', () => {
filePath: string
) => Promise<void>;
lastProcessedLineCount: Map<string, number>;
instanceCreatedAt: number;
};
// Make the "new file after startup" case deterministic across filesystems
// whose birthtime precision can differ on CI runners.
watcherAny.instanceCreatedAt = 0;
// First read of a NEW file should detect errors (not baseline-skip)
await watcherAny.detectErrorsInSessionFile('test-project', 'session-new', filePath);