Преглед изворни кода

fix test

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
(cherry picked from commit acfc06e6372676ac60e04e6cd21f691ae998548e)
Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer пре 2 година
родитељ
комит
e4fee1aca3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pkg/costmodel/allocation_helpers_test.go

+ 1 - 1
pkg/costmodel/allocation_helpers_test.go

@@ -354,7 +354,7 @@ func TestBuildPVMap(t *testing.T) {
 	for name, testCase := range testCases {
 		t.Run(name, func(t *testing.T) {
 			pvMap := make(map[pvKey]*pv)
-			buildPVMap(testCase.resolution, pvMap, testCase.resultsPVCostPerGiBHour, testCase.resultsActiveMinutes, window)
+			buildPVMap(testCase.resolution, pvMap, testCase.resultsPVCostPerGiBHour, testCase.resultsActiveMinutes, []*prom.QueryResult{}, window)
 			if len(pvMap) != len(testCase.expected) {
 				t.Errorf("pv map does not have the expected length %d : %d", len(pvMap), len(testCase.expected))
 			}