From b8f79f8cf75efad471f35d14b956fe11883a9fd0 Mon Sep 17 00:00:00 2001 From: "qianlei.qianl" Date: Wed, 24 May 2023 17:39:20 +0800 Subject: [PATCH] test(core): fix undefined NewBackoff() --- cluster-autoscaler/core/static_autoscaler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster-autoscaler/core/static_autoscaler_test.go b/cluster-autoscaler/core/static_autoscaler_test.go index fb56a5943572..602fa7e70cae 100644 --- a/cluster-autoscaler/core/static_autoscaler_test.go +++ b/cluster-autoscaler/core/static_autoscaler_test.go @@ -1183,7 +1183,7 @@ func TestStaticAutoscalerInstanceCreationErrors(t *testing.T) { provider.On("NodeGroups").Return([]cloudprovider.NodeGroup{nodeGroupC}) provider.On("NodeGroupForNode", mock.Anything).Return(nil, nil) - clusterState = clusterstate.NewClusterStateRegistry(provider, clusterStateConfig, context.LogRecorder, NewBackoff()) + clusterState = clusterstate.NewClusterStateRegistry(provider, clusterStateConfig, context.LogRecorder, newBackoff()) clusterState.RefreshCloudProviderNodeInstancesCache() autoscaler.clusterStateRegistry = clusterState