mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-10-21 05:23:19 +00:00
Merge pull request #1245 from getagentseal/fix/parity-idle-seconds
test(menubar): ignore idleSeconds in the payload parity check
This commit is contained in:
commit
3517f7c928
1 changed files with 4 additions and 2 deletions
|
|
@ -68,10 +68,12 @@ async function seedFixture(): Promise<void> {
|
|||
process.env['CODEBURN_CACHE_DIR'] = cacheDir
|
||||
}
|
||||
|
||||
/** Everything but the per-call wall-clock `generated` stamp. */
|
||||
/** Everything but the wall-clock fields: the `generated` stamp and each live session's
|
||||
* `idleSeconds`, which ticks between two builds that straddle a second boundary. */
|
||||
function stableShape(payload: unknown): unknown {
|
||||
const clone = structuredClone(payload) as { generated?: string }
|
||||
const clone = structuredClone(payload) as { generated?: string; liveSessions?: { sessions: { idleSeconds: number }[] } }
|
||||
clone.generated = ''
|
||||
for (const session of clone.liveSessions?.sessions ?? []) session.idleSeconds = 0
|
||||
return clone
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue