fix: anchor growth forecasts to real Tehran date
This commit is contained in:
@@ -27,6 +27,16 @@ func TestNextTehranRefreshUsesCalendarBoundary(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestTehranTodayUsesClockInsteadOfDatasetWatermark(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
now := time.Date(2026, time.August, 21, 8, 30, 0, 0, time.UTC)
|
||||
got := tehranToday(now)
|
||||
if got.Format(time.DateOnly) != "2026-08-21" {
|
||||
t.Fatalf("tehranToday() = %s", got.Format(time.DateOnly))
|
||||
}
|
||||
}
|
||||
|
||||
func TestEstimatedTokenReservationCoversEveryRetryAndTurn(t *testing.T) {
|
||||
t.Parallel()
|
||||
small := EstimatedTokenReservation([]byte("{}"))
|
||||
|
||||
Reference in New Issue
Block a user