@@ -35,16 +35,6 @@ func TestPriorityMetadata(t *testing.T) {
35
35
nonZeroReqs .MilliCPU = priorityutil .DefaultMilliCPURequest
36
36
nonZeroReqs .Memory = priorityutil .DefaultMemoryRequest
37
37
38
- specifiedReqs := & schedulernodeinfo.Resource {}
39
- specifiedReqs .MilliCPU = 200
40
- specifiedReqs .Memory = 2000
41
-
42
- nonPodLimits := & schedulernodeinfo.Resource {}
43
-
44
- specifiedPodLimits := & schedulernodeinfo.Resource {}
45
- specifiedPodLimits .MilliCPU = 200
46
- specifiedPodLimits .Memory = 2000
47
-
48
38
tolerations := []v1.Toleration {{
49
39
Key : "foo" ,
50
40
Operator : v1 .TolerationOpEqual ,
@@ -138,23 +128,20 @@ func TestPriorityMetadata(t *testing.T) {
138
128
{
139
129
pod : podWithTolerationsAndAffinity ,
140
130
expected : & priorityMetadata {
141
- podLimits : nonPodLimits ,
142
131
podSelector : labels .NewSelector (),
143
132
},
144
133
name : "Produce a priorityMetadata with default requests" ,
145
134
},
146
135
{
147
136
pod : podWithTolerationsAndRequests ,
148
137
expected : & priorityMetadata {
149
- podLimits : nonPodLimits ,
150
138
podSelector : labels .NewSelector (),
151
139
},
152
140
name : "Produce a priorityMetadata with tolerations and requests" ,
153
141
},
154
142
{
155
143
pod : podWithAffinityAndRequests ,
156
144
expected : & priorityMetadata {
157
- podLimits : specifiedPodLimits ,
158
145
podSelector : labels .NewSelector (),
159
146
},
160
147
name : "Produce a priorityMetadata with affinity and requests" ,
0 commit comments