mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 08:06:50 +00:00
test(scheduler): pass explicit multiplier pointer to snapshot
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user