diff --git a/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go b/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go index 1d69f0d8e37e..41bac0ddfb32 100644 --- a/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go +++ b/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go @@ -302,7 +302,7 @@ func TestFetchExplicitAsgs(t *testing.T) { defer resetAWSRegion(os.LookupEnv("AWS_REGION")) os.Setenv("AWS_REGION", "fanghorn") instanceTypes, _ := GetStaticEC2InstanceTypes() - m, err := createAWSManagerInternal(nil, do, &autoScalingWrapper{s, newLaunchConfigurationInstanceTypeCache()}, nil, instanceTypes) + m, err := createAWSManagerInternal(nil, do, &autoScalingWrapper{s, map[string]string{}}, nil, instanceTypes) assert.NoError(t, err) asgs := m.asgCache.Get() @@ -541,7 +541,7 @@ func TestFetchAutoAsgs(t *testing.T) { os.Setenv("AWS_REGION", "fanghorn") // fetchAutoASGs is called at manager creation time, via forceRefresh instanceTypes, _ := GetStaticEC2InstanceTypes() - m, err := createAWSManagerInternal(nil, do, &autoScalingWrapper{s, newLaunchConfigurationInstanceTypeCache()}, nil, instanceTypes) + m, err := createAWSManagerInternal(nil, do, &autoScalingWrapper{s, map[string]string{}}, nil, instanceTypes) assert.NoError(t, err) asgs := m.asgCache.Get()