Skip to content

Commit

Permalink
updating unit test name
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisinha0506 committed Jun 21, 2024
1 parent b7ba76f commit d9f8217
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ func TestHasInstance(t *testing.T) {
assert.False(t, present)
}

func TestDeleteNodesWithPlaceholderAndIncorrectCache(t *testing.T) {
func TestDeleteNodesWithPlaceholderAndStaleCache(t *testing.T) {
// This test validates the scenario where ASG cache is not in sync with Autoscaling configuration.
// we are taking an example where ASG size is 10, cache as 3 instances "i-0000", "i-0001" and "i-0002
// But ASG has 6 instances i-0000 to i-10005. When DeleteInstances is called with 2 instances ("i-0000", "i-0001" )
Expand Down Expand Up @@ -834,7 +834,7 @@ func TestDeleteNodesWithPlaceholderAndIncorrectCache(t *testing.T) {
instanceToAsg[awsInstanceRef] = commonAsg
}

// modifying provider to have incorrect information than ASG current state
// modifying provider to bring disparity between ASG and cache
provider.awsManager.asgCache.asgToInstances[AwsRef{Name: "test-asg"}] = awsInstanceRefs
provider.awsManager.asgCache.instanceToAsg = instanceToAsg

Expand Down

0 comments on commit d9f8217

Please sign in to comment.