mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 12:33:16 -05:00
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