@@ -404,7 +404,8 @@ func TestPromToPodMetrics(t *testing.T) {
404404 expectedMetrics : & Metrics {
405405 WaitingQueueSize : 7 ,
406406 KVCacheUsagePercent : 0.8 ,
407- ActiveModels : map [string ]int {"lora1" : 0 , "lora2" : 0 , "lora3" : 0 },
407+ ActiveModels : map [string ]int {"lora1" : 0 , "lora2" : 0 },
408+ WaitingModels : map [string ]int {"lora3" : 0 },
408409 MaxActiveModels : 3 ,
409410 },
410411 },
@@ -416,8 +417,8 @@ func TestPromToPodMetrics(t *testing.T) {
416417 KVCacheUtilization : & MetricSpec {MetricName : "vllm_usage" },
417418 LoraRequestInfo : & MetricSpec {MetricName : "vllm:lora_requests_info" },
418419 },
419- existingMetrics : & Metrics {ActiveModels : map [string ]int {}},
420- expectedMetrics : & Metrics {ActiveModels : map [string ]int {}},
420+ existingMetrics : & Metrics {ActiveModels : map [string ]int {}, WaitingModels : map [ string ] int {} },
421+ expectedMetrics : & Metrics {ActiveModels : map [string ]int {}, WaitingModels : map [ string ] int {} },
421422 expectedErr : multierr .Combine (errors .New ("metric family \" vllm_waiting\" not found" ), errors .New ("metric family \" vllm_usage\" not found" ), errors .New ("metric family \" vllm:lora_requests_info\" not found" )),
422423 },
423424 {
@@ -439,7 +440,8 @@ func TestPromToPodMetrics(t *testing.T) {
439440 expectedMetrics : & Metrics {
440441 WaitingQueueSize : 0 ,
441442 KVCacheUsagePercent : 0.8 ,
442- ActiveModels : map [string ]int {"lora1" : 0 , "lora2" : 0 , "lora3" : 0 },
443+ ActiveModels : map [string ]int {"lora1" : 0 , "lora2" : 0 },
444+ WaitingModels : map [string ]int {"lora3" : 0 },
443445 MaxActiveModels : 3 ,
444446 },
445447 expectedErr : errors .New ("metric family \" vllm_waiting\" not found" ),
@@ -457,6 +459,7 @@ func TestPromToPodMetrics(t *testing.T) {
457459 existingMetrics : & Metrics {},
458460 expectedMetrics : & Metrics {
459461 ActiveModels : map [string ]int {"lora1" : 0 },
462+ WaitingModels : map [string ]int {},
460463 MaxActiveModels : 0 , // Should still default to 0.
461464
462465 },
0 commit comments