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:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user