Skip to content

Commit

Permalink
fix TestStaticAutoscalerInstanceCreationErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
daimaxiaxie committed Mar 22, 2024
1 parent 1c63f03 commit da0eb2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cluster-autoscaler/core/static_autoscaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,7 @@ func TestStaticAutoscalerInstanceCreationErrors(t *testing.T) {
nodeGroupA.On("Exist").Return(true)
nodeGroupA.On("Autoprovisioned").Return(false)
nodeGroupA.On("TargetSize").Return(5, nil)
nodeGroupA.On("MinSize").Return(1, nil)
nodeGroupA.On("Id").Return("A")
nodeGroupA.On("DeleteNodes", mock.Anything).Return(nil)
nodeGroupA.On("GetOptions", options.NodeGroupDefaults).Return(&options.NodeGroupDefaults, nil)
Expand Down Expand Up @@ -1852,6 +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("Id").Return("D")
nodeGroupAtomic.On("DeleteNodes", mock.Anything).Return(nil)
nodeGroupAtomic.On("GetOptions", options.NodeGroupDefaults).Return(
Expand Down

0 comments on commit da0eb2f

Please sign in to comment.