test(billing): fix peak-rate usage test clock

This commit is contained in:
r266-tech committed 2026-11-12 16:25:44 -08:00
1 parent 530c5e3a4f
commit fc8af440ed
2 files changed
+4

No files matched your search

@@ -362,6 +362,8 @@ func TestGatewayServiceRecordUsage_PeakRateAffectsTokenModeImageOutputTokens(t *
},
User: &User{ID: 602},
Account: &Account{ID: 702},
// The peak window excludes 23:59, so do not depend on the wall clock.
PricingAt: time.Date(2026, time.January, 15, 12, 0, 0, 0, time.UTC),
})
require.NoError(t, err)
@@ -476,6 +476,8 @@ func TestOpenAIGatewayServiceRecordUsage_PeakRateAffectsTokenModeImageOutputToke
},
User: &User{ID: 2004},
Account: &Account{ID: 3004},
// The peak window excludes 23:59, so do not depend on the wall clock.
PricingAt: time.Date(2026, time.January, 15, 12, 0, 0, 0, time.UTC),
})
require.NoError(t, err)