Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
seshachalam-yv committed Mar 1, 2023
1 parent be32d77 commit e94fcd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/component/etcd/role/role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var _ = Describe("Role Component", Ordered, func() {
Expect(err).NotTo(HaveOccurred())
verifyRoleValues(updated, values)
})
It("should return nil when there is nothing to update the Role", func() {
It("should not return an error when there is nothing to update the Role", func() {
err := roleComponent.Deploy(ctx)
Expect(err).NotTo(HaveOccurred())
updated := &rbacv1.Role{}
Expand All @@ -91,9 +91,9 @@ var _ = Describe("Role Component", Ordered, func() {
role := &rbacv1.Role{}
Expect(c.Get(ctx, getRoleKeyFromValue(values), role)).To(BeNotFoundError())
})
It("returning nil when there is nothing to delete", func() {
It("should not return an error when there is nothing to delete", func() {
err := roleComponent.Destroy(ctx)
Expect(err).To(BeNil())
Expect(err).NotTo(HaveOccurred())
})
})
})
Expand Down

0 comments on commit e94fcd3

Please sign in to comment.