mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 10:27:33 +00:00
Use a fixed timestamp for periodic session selection regression
Keep the older edited file outside the ordinary recent window without relying on wall-clock time. Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
This commit is contained in:
co-authored by
Jinjing
parent
cd42944a14
commit
bd8a70b18e
@@ -157,7 +157,7 @@ it('keeps ordinary hosts on newest-session polling until their next full sweep',
|
||||
const newest = transcriptPath('newest')
|
||||
await writeClaudeTranscript(older, ['older original'], 'older')
|
||||
await writeClaudeTranscript(newest, ['newest original'], 'newest')
|
||||
const at = Date.now()
|
||||
const at = Date.UTC(2099, 0, 1)
|
||||
await utimes(older, new Date(at - 20000), new Date(at - 20000))
|
||||
await utimes(newest, new Date(at), new Date(at))
|
||||
await newIndexer({ discoveryPolicy: 'periodic', recentPerAgent: 1 }).start()
|
||||
|
||||
Reference in New Issue
Block a user