@@ -32,16 +32,15 @@ func newTestRequest(id string) *types.LLMRequest {
3232 }
3333}
3434
35- func newTestSchedulingResult (primaryProfile string , profilePods map [string ]types.Pod ) * types.SchedulingResult {
35+ func newTestSchedulingResult (profilePods map [string ]types.Pod ) * types.SchedulingResult {
3636 profileResults := make (map [string ]* types.ProfileRunResult )
3737 for profile , pod := range profilePods {
3838 profileResults [profile ] = & types.ProfileRunResult {
3939 TargetPods : []types.Pod {pod },
4040 }
4141 }
4242 return & types.SchedulingResult {
43- ProfileResults : profileResults ,
44- PrimaryProfileName : primaryProfile ,
43+ ProfileResults : profileResults ,
4544 }
4645}
4746
@@ -140,7 +139,7 @@ func TestActiveRequestScorer_PreRequest(t *testing.T) {
140139
141140 t .Run ("First request" , func (t * testing.T ) {
142141 request := newTestRequest ("test-request-1" )
143- schedulingResult := newTestSchedulingResult (testProfile , map [string ]types.Pod {
142+ schedulingResult := newTestSchedulingResult (map [string ]types.Pod {
144143 testProfile : podA ,
145144 })
146145
@@ -152,7 +151,7 @@ func TestActiveRequestScorer_PreRequest(t *testing.T) {
152151
153152 t .Run ("Second request to multiple pods" , func (t * testing.T ) {
154153 request := newTestRequest ("test-request-2" )
155- schedulingResult := newTestSchedulingResult (testProfile , map [string ]types.Pod {
154+ schedulingResult := newTestSchedulingResult (map [string ]types.Pod {
156155 testProfile : podA ,
157156 "prefill" : podB ,
158157 })
@@ -171,11 +170,10 @@ func TestActiveRequestScorer_ResponseComplete(t *testing.T) {
171170
172171 podA := newTestPod ("pod-a" , 2 )
173172 request := newTestRequest ("test-request-1" )
174- testProfile := "test-profile"
175173
176174 // Setup initial state: add request through PreRequest
177- schedulingResult := newTestSchedulingResult (testProfile , map [string ]types.Pod {
178- testProfile : podA ,
175+ schedulingResult := newTestSchedulingResult (map [string ]types.Pod {
176+ "test-profile" : podA ,
179177 })
180178 scorer .PreRequest (ctx , request , schedulingResult )
181179
@@ -196,7 +194,7 @@ func TestActiveRequestScorer_TTLExpiration(t *testing.T) {
196194
197195 podA := newTestPod ("pod-a" , 0 )
198196 request := newTestRequest ("test-request-ttl" )
199- schedulingResult := newTestSchedulingResult ("test-profile" , map [string ]types.Pod {
197+ schedulingResult := newTestSchedulingResult (map [string ]types.Pod {
200198 "test-profile" : podA ,
201199 })
202200
0 commit comments