diff --git a/cluster-autoscaler/core/static_autoscaler_test.go b/cluster-autoscaler/core/static_autoscaler_test.go index 0a90bebb12b4..476c2a69cffc 100644 --- a/cluster-autoscaler/core/static_autoscaler_test.go +++ b/cluster-autoscaler/core/static_autoscaler_test.go @@ -1853,7 +1853,7 @@ func TestStaticAutoscalerInstanceCreationErrors(t *testing.T) { nodeGroupAtomic.On("Exist").Return(true) nodeGroupAtomic.On("Autoprovisioned").Return(false) nodeGroupAtomic.On("TargetSize").Return(3, nil) - nodeGroupA.On("MinSize").Return(1, nil) + nodeGroupAtomic.On("MinSize").Return(1, nil) nodeGroupAtomic.On("Id").Return("D") nodeGroupAtomic.On("DeleteNodes", mock.Anything).Return(nil) nodeGroupAtomic.On("GetOptions", options.NodeGroupDefaults).Return(