test(ci): stabilize file watcher first-read timing
This commit is contained in:
parent
94f41ed5a5
commit
da9cb93e93
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue