Skip to content

Commit bc7cc68

Browse files
committed
pkg: envtest: komega: fix godoc Succeed typos
1 parent 8d9b8d5 commit bc7cc68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/envtest/komega/default.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func List(list client.ObjectList, opts ...client.ListOption) func() error {
5151
// gomega.Eventually(k.Update(&deployment, func (o client.Object) {
5252
// deployment.Spec.Replicas = 3
5353
// return &deployment
54-
// })).To(gomega.Scucceed())
54+
// })).To(gomega.Succeed())
5555
// By calling the returned function directly it can also be used as gomega.Expect(k.Update(...)()).To(...)
5656
func Update(obj client.Object, f func(), opts ...client.UpdateOption) func() error {
5757
checkDefaultClient()
@@ -64,7 +64,7 @@ func Update(obj client.Object, f func(), opts ...client.UpdateOption) func() err
6464
// gomega.Eventually(k.UpdateStatus(&deployment, func (o client.Object) {
6565
// deployment.Status.AvailableReplicas = 1
6666
// return &deployment
67-
// })).To(gomega.Scucceed())
67+
// })).To(gomega.Succeed())
6868
// By calling the returned function directly it can also be used as gomega.Expect(k.UpdateStatus(...)()).To(...)
6969
func UpdateStatus(obj client.Object, f func(), opts ...client.UpdateOption) func() error {
7070
checkDefaultClient()

pkg/envtest/komega/interfaces.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type Komega interface {
4545
// gomega.Eventually(k.Update(&deployment, func (o client.Object) {
4646
// deployment.Spec.Replicas = 3
4747
// return &deployment
48-
// })).To(gomega.Scucceed())
48+
// })).To(gomega.Succeed())
4949
// By calling the returned function directly it can also be used as gomega.Expect(k.Update(...)()).To(...)
5050
Update(client.Object, func(), ...client.UpdateOption) func() error
5151

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

0 commit comments

Comments
 (0)