Files
LocalAI/core/services/studio/store
Ettore Di Giacinto 23594dcc60 test(studio): widen the margin of the turn reap spec
The spec "a turn that stops beating is reaped, one that keeps beating
is not" beat the live turn once and then made several store calls
before the second reap with a 50 ms threshold. Under -race on a loaded
runner those calls took longer than 50 ms, so the live turn counted as
stale and the second reap found it.

Use a 300 ms threshold, sleep twice that for the stale turn, and beat
the live turn again right before the second reap. The assertions keep
their meaning and the store is unchanged.

Assisted-by: Claude:claude-sonnet-5-5
2026-11-04 11:55:11 +00:00
..