Skip to content

Commit caac2a4

Browse files
committed
Fix static autoscaler tests
1 parent 8d78a28 commit caac2a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster-autoscaler/core/static_autoscaler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ func TestStaticAutoscalerRunOnce(t *testing.T) {
504504
// Remove unregistered nodes.
505505
readyNodeLister.SetNodes([]*apiv1.Node{n1, n2})
506506
allNodeLister.SetNodes([]*apiv1.Node{n1, n2})
507-
allPodListerMock.On("List").Return([]*apiv1.Pod{p1, p2}, nil).Once()
507+
allPodListerMock.On("List").Return([]*apiv1.Pod{p1}, nil).Once()
508508
daemonSetListerMock.On("List", labels.Everything()).Return([]*appsv1.DaemonSet{}, nil).Once()
509509
onScaleDownMock.On("ScaleDown", "ng2", "n3").Return(nil).Once()
510510
podDisruptionBudgetListerMock.On("List").Return([]*policyv1.PodDisruptionBudget{}, nil).Once()

0 commit comments

Comments
 (0)