@@ -87,16 +87,11 @@ func TestActiveRequestScorer_Score(t *testing.T) {
8787
8888 for _ , test := range tests {
8989 t .Run (test .name , func (t * testing.T ) {
90- params := & ActiveRequestScorerParameters {RequestTimeout : 300 }
91- scorer := NewActiveRequestScorer (context .Background (), params )
90+ scorer := NewActiveRequestScorer (context .Background (), nil )
9291 test .setupCache (scorer )
9392
9493 got := scorer .Score (context .Background (), nil , nil , test .input )
9594
96- // Debug output
97- t .Logf ("Got scores: %+v" , got )
98- t .Logf ("Want scores: %+v" , test .wantScores )
99-
10095 if diff := cmp .Diff (test .wantScores , got ); diff != "" {
10196 t .Errorf ("Unexpected output (-want +got): %v" , diff )
10297 }
@@ -107,8 +102,7 @@ func TestActiveRequestScorer_Score(t *testing.T) {
107102func TestActiveRequestScorer_PreRequest (t * testing.T ) {
108103 ctx := context .Background ()
109104
110- params := & ActiveRequestScorerParameters {RequestTimeout : 300 }
111- scorer := NewActiveRequestScorer (ctx , params )
105+ scorer := NewActiveRequestScorer (ctx , nil )
112106
113107 podA := & types.PodMetrics {
114108 Pod : & backend.Pod {NamespacedName : k8stypes.NamespacedName {Name : "pod-a" , Namespace : "default" }},
@@ -177,8 +171,7 @@ func TestActiveRequestScorer_PreRequest(t *testing.T) {
177171func TestActiveRequestScorer_PostResponse (t * testing.T ) {
178172 ctx := context .Background ()
179173
180- params := & ActiveRequestScorerParameters {RequestTimeout : 300 }
181- scorer := NewActiveRequestScorer (ctx , params )
174+ scorer := NewActiveRequestScorer (ctx , nil )
182175
183176 request := & types.LLMRequest {
184177 RequestId : "test-request-1" ,
@@ -235,7 +228,7 @@ func TestActiveRequestScorer_TTLExpiration(t *testing.T) {
235228 ctx := context .Background ()
236229
237230 // Use very short timeout for test
238- params := & ActiveRequestScorerParameters {RequestTimeout : 1 }
231+ params := & ActiveRequestScorerParameters {RequestTimeout : "1s" }
239232 scorer := NewActiveRequestScorer (ctx , params ) // 1 second timeout
240233
241234 request := & types.LLMRequest {
@@ -281,7 +274,7 @@ func TestActiveRequestScorer_TTLExpiration(t *testing.T) {
281274}
282275
283276func TestNewActiveRequestScorer_InvalidTimeout (t * testing.T ) {
284- params := & ActiveRequestScorerParameters {RequestTimeout : - 1 }
277+ params := & ActiveRequestScorerParameters {RequestTimeout : "invalid" }
285278 scorer := NewActiveRequestScorer (context .Background (), params )
286279
287280 // Should use default timeout when invalid value is provided
@@ -291,8 +284,7 @@ func TestNewActiveRequestScorer_InvalidTimeout(t *testing.T) {
291284}
292285
293286func TestActiveRequestScorer_TypedName (t * testing.T ) {
294- params := & ActiveRequestScorerParameters {RequestTimeout : 300 }
295- scorer := NewActiveRequestScorer (context .Background (), params )
287+ scorer := NewActiveRequestScorer (context .Background (), nil )
296288
297289 typedName := scorer .TypedName ()
298290 if typedName .Type != ActiveRequestScorerType {
@@ -301,8 +293,7 @@ func TestActiveRequestScorer_TypedName(t *testing.T) {
301293}
302294
303295func TestActiveRequestScorer_WithName (t * testing.T ) {
304- params := & ActiveRequestScorerParameters {RequestTimeout : 300 }
305- scorer := NewActiveRequestScorer (context .Background (), params )
296+ scorer := NewActiveRequestScorer (context .Background (), nil )
306297 testName := "test-scorer"
307298
308299 scorer = scorer .WithName (testName )
0 commit comments