Skip to content

Commit 9559204

Browse files
authored
test: add additional assertion for dynamic SKU list test (#7737)
1 parent 03e6b27 commit 9559204

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cluster-autoscaler/cloudprovider/azure/azure_scale_set_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,10 @@ func TestTemplateNodeInfo(t *testing.T) {
11161116
}
11171117
asg.Name = "test-asg"
11181118

1119+
// The dynamic SKU list ("cache") in the test provider is empty
1120+
// (initialized with cfg.EnableDynamicInstanceList = false).
1121+
assert.False(t, provider.azureManager.azureCache.HasVMSKUs())
1122+
11191123
t.Run("Checking fallback to static because dynamic list is empty", func(t *testing.T) {
11201124
asg.enableDynamicInstanceList = true
11211125

0 commit comments

Comments
 (0)