test(scheduler): pass explicit multiplier pointer to snapshot

This commit is contained in:
Achord Chan committed 2026-09-23 11:38:23 +08:00
1 parent b5b5f1f94b
commit 17ce21c038
1 file changed
+2 -1
@@ -97,7 +97,8 @@ func TestOpenAISchedulerCanonicalResetScoresMatchSnapshot(t *testing.T) {
scores := openAIPlanScores(plan)
require.InDelta(t, 1, scores[1]-scores[2], 1e-9)
snapshots := buildOpenAIAccountSchedulerScoreSnapshot(accounts, nil, scheduler.service.openAIWSSchedulerWeights(), false, defaultOpenAIOAuthSchedulingRateMultiplier)
multiplier := float64(defaultOpenAIOAuthSchedulingRateMultiplier)
snapshots := buildOpenAIAccountSchedulerScoreSnapshot(accounts, nil, scheduler.service.openAIWSSchedulerWeights(), false, &multiplier)
for _, account := range accounts {
require.InDelta(t, scores[account.ID], snapshots[account.ID].BaseScore, 1e-9)
}