Skip to content

Commit 8fd9e1f

Browse files
committed
tests: reverted to old test behavior
Signed-off-by: MenD32 <[email protected]>
1 parent f038712 commit 8fd9e1f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cluster-autoscaler/estimator/binpacking_estimator_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,20 @@ func TestBinpackingEstimate(t *testing.T) {
172172
expectProcessedPods: highResourcePodGroup.Pods,
173173
},
174174
{
175-
name: "hostname topology spreading with maxSkew=2 allows 8 pods to schedule retroactively",
175+
name: "hostname topology spreading with maxSkew=2 forces 2 pods/node",
176176
millicores: 1000,
177177
memory: 5000,
178178
podsEquivalenceGroup: []PodEquivalenceGroup{makePodEquivalenceGroup(
179179
BuildTestPod(
180180
"estimatee",
181-
20,
182-
100,
181+
200,
182+
200,
183183
WithNamespace("universe"),
184184
WithLabels(map[string]string{
185185
"app": "estimatee",
186186
}),
187187
WithMaxSkew(2, "kubernetes.io/hostname", 1)), 8)},
188-
expectNodeCount: 2,
188+
expectNodeCount: 4,
189189
expectPodCount: 8,
190190
},
191191
{
@@ -206,7 +206,7 @@ func TestBinpackingEstimate(t *testing.T) {
206206
expectPodCount: 2,
207207
},
208208
{
209-
name: "hostname topology spreading with maxSkew=1 with a large scaleup",
209+
name: "hostname topology spreading with maxSkew=1 with a large scaleup handles scheduling pods retroactively",
210210
millicores: 1000,
211211
memory: 5000,
212212
podsEquivalenceGroup: []PodEquivalenceGroup{makePodEquivalenceGroup(

0 commit comments

Comments
 (0)