Skip to content

Commit 851dd10

Browse files
tallaxesk8s-infra-cherrypick-robot
authored andcommitted
fix: corresponding test
1 parent 607fd6b commit 851dd10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cluster-autoscaler/cloudprovider/azure/azure_manager_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ func TestGetFilteredAutoscalingGroupsVmss(t *testing.T) {
10631063
enableForceDelete: manager.config.EnableForceDelete,
10641064
curSize: 3,
10651065
sizeRefreshPeriod: manager.azureCache.refreshInterval,
1066-
getVmssSizeRefreshPeriod: time.Duration(manager.azureCache.refreshInterval) * time.Second,
1066+
getVmssSizeRefreshPeriod: manager.azureCache.refreshInterval,
10671067
InstanceCache: InstanceCache{instancesRefreshPeriod: defaultVmssInstancesRefreshPeriod},
10681068
}}
10691069
assert.True(t, assert.ObjectsAreEqualValues(expectedAsgs, asgs), "expected %#v, but found: %#v", expectedAsgs, asgs)
@@ -1111,7 +1111,7 @@ func TestGetFilteredAutoscalingGroupsVmssWithConfiguredSizes(t *testing.T) {
11111111
enableForceDelete: manager.config.EnableForceDelete,
11121112
curSize: 3,
11131113
sizeRefreshPeriod: manager.azureCache.refreshInterval,
1114-
getVmssSizeRefreshPeriod: time.Duration(manager.azureCache.refreshInterval) * time.Second,
1114+
getVmssSizeRefreshPeriod: manager.azureCache.refreshInterval,
11151115
InstanceCache: InstanceCache{instancesRefreshPeriod: defaultVmssInstancesRefreshPeriod},
11161116
}}
11171117
assert.True(t, assert.ObjectsAreEqualValues(expectedAsgs, asgs), "expected %#v, but found: %#v", expectedAsgs, asgs)

0 commit comments

Comments
 (0)