Skip to content

Commit

Permalink
Add VMs pool checks back into target size test
Browse files Browse the repository at this point in the history
  • Loading branch information
rakechill committed Jul 3, 2024
1 parent c33c4ab commit 317fd78
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func TestTargetSize(t *testing.T) {
mockVMSSClient := mockvmssclient.NewMockInterface(ctrl)
mockVMSSClient.EXPECT().List(gomock.Any(), provider.azureManager.config.ResourceGroup).Return(expectedScaleSets, nil).AnyTimes()
provider.azureManager.azClient.virtualMachineScaleSetsClient = mockVMSSClient
mockVMClient := mockvmclient.NewMockInterface(ctrl)
mockVMClient.EXPECT().List(gomock.Any(), provider.azureManager.config.ResourceGroup).Return([]compute.VirtualMachine{}, nil).AnyTimes()
provider.azureManager.azClient.virtualMachinesClient = mockVMClient

err := provider.azureManager.forceRefresh()
assert.NoError(t, err)
Expand Down

0 comments on commit 317fd78

Please sign in to comment.