Skip to content

Commit f3bbc72

Browse files
authored
Keep min instance to be greater than 0 for integration test (#427)
1 parent 63be4d4 commit f3bbc72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/integration/cninode/cninode_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ var _ = Describe("[CANARY]CNINode test", func() {
4444
Expect(err).ToNot(HaveOccurred())
4545
oldMinSize = *asg[0].MinSize
4646
oldMaxSize = *asg[0].MaxSize
47+
48+
// Keep atleast one instance running in the cluster when restoring the values in AfterEach
49+
if oldMinSize == 0 {
50+
oldMinSize = 1
51+
}
4752
})
4853
AfterEach(func() {
4954
By("restoring ASG minSize & maxSize after test")

0 commit comments

Comments
 (0)