Skip to content

Commit

Permalink
Keep min instance to be greater than 0 for integration test (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydeokar authored May 31, 2024
1 parent 63be4d4 commit f3bbc72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration/cninode/cninode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ var _ = Describe("[CANARY]CNINode test", func() {
Expect(err).ToNot(HaveOccurred())
oldMinSize = *asg[0].MinSize
oldMaxSize = *asg[0].MaxSize

// Keep atleast one instance running in the cluster when restoring the values in AfterEach
if oldMinSize == 0 {
oldMinSize = 1
}
})
AfterEach(func() {
By("restoring ASG minSize & maxSize after test")
Expand Down

0 comments on commit f3bbc72

Please sign in to comment.