core: pin the history store clock in fixed-date tests
agent-review agent review: pass

Storage, rework and limit-analysis tests add Claude events with fixed
2026-10-14 timestamps to a HistoryStore on the system clock. The 60-day
Claude retention would drop them from mid-December 2026 on, so these
stores now use TestClock.

Refs #11
This commit is contained in:
Florian Schmidt
2026-10-17 09:24:52 +02:00
parent 312db4e0b8
commit 0549e862c5
3 changed files with 9 additions and 9 deletions
@@ -156,7 +156,7 @@ public sealed class LimitAnalysisTests
[Fact] public void ModelSeriesGroupsInOnePassAndMatchesTotals()
{
using var directory = new TestDirectory();
var store = new HistoryStore(directory.Path, new DiagnosticLog());
var store = new HistoryStore(directory.Path, new DiagnosticLog(), new TestClock());
store.Add(new(Provider.Claude, Now.AddHours(-2), "a", "p", new(Total: 20), "a"));
store.Add(new(Provider.Claude, Now.AddHours(-2), "b", "p", new(Total: 30), "b"));
store.Add(new(Provider.Claude, Now.AddHours(-1), "a", "p", new(Total: 40), "c"));