Skip to content

Commit

Permalink
Fix test for getting non-existent cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jan 25, 2019
1 parent 1cd76eb commit a311914
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/cfn/manager/nodegroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ var _ = Describe("StackCollection NodeGroup", func() {
out, err = sc.GetNodeGroupSummaries("")
})

It("should not error", func() {
Expect(err).NotTo(HaveOccurred())
It("should error", func() {
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(Equal("getting nodegroup stacks: no eksctl-managed CloudFormation stacks found for \"test-cluster-non-existent\""))
})

It("should not have called AWS CloudFormation GetTemplate", func() {
Expand Down

0 comments on commit a311914

Please sign in to comment.