Skip to content

Commit

Permalink
pkg: envtest: komega: fix godoc Succeed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
damdo committed Apr 8, 2022
1 parent 8d9b8d5 commit bc7cc68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/envtest/komega/default.go
Expand Up @@ -51,7 +51,7 @@ func List(list client.ObjectList, opts ...client.ListOption) func() error {
// gomega.Eventually(k.Update(&deployment, func (o client.Object) {
// deployment.Spec.Replicas = 3
// return &deployment
// })).To(gomega.Scucceed())
// })).To(gomega.Succeed())
// By calling the returned function directly it can also be used as gomega.Expect(k.Update(...)()).To(...)
func Update(obj client.Object, f func(), opts ...client.UpdateOption) func() error {
checkDefaultClient()
Expand All @@ -64,7 +64,7 @@ func Update(obj client.Object, f func(), opts ...client.UpdateOption) func() err
// gomega.Eventually(k.UpdateStatus(&deployment, func (o client.Object) {
// deployment.Status.AvailableReplicas = 1
// return &deployment
// })).To(gomega.Scucceed())
// })).To(gomega.Succeed())
// By calling the returned function directly it can also be used as gomega.Expect(k.UpdateStatus(...)()).To(...)
func UpdateStatus(obj client.Object, f func(), opts ...client.UpdateOption) func() error {
checkDefaultClient()
Expand Down
4 changes: 2 additions & 2 deletions pkg/envtest/komega/interfaces.go
Expand Up @@ -45,7 +45,7 @@ type Komega interface {
// gomega.Eventually(k.Update(&deployment, func (o client.Object) {
// deployment.Spec.Replicas = 3
// return &deployment
// })).To(gomega.Scucceed())
// })).To(gomega.Succeed())
// By calling the returned function directly it can also be used as gomega.Expect(k.Update(...)()).To(...)
Update(client.Object, func(), ...client.UpdateOption) func() error

Expand All @@ -55,7 +55,7 @@ type Komega interface {
// gomega.Eventually(k.Update(&deployment, func (o client.Object) {
// deployment.Status.AvailableReplicas = 1
// return &deployment
// })).To(gomega.Scucceed())
// })).To(gomega.Succeed())
// By calling the returned function directly it can also be used as gomega.Expect(k.UpdateStatus(...)()).To(...)
UpdateStatus(client.Object, func(), ...client.UpdateOption) func() error

Expand Down

0 comments on commit bc7cc68

Please sign in to comment.