Cleanup errcheck code (#10166)
Signed-off-by: z1cheng <imchench@gmail.com>
This commit is contained in:
parent
d44a8e0045
commit
ff0cb504d6
3 changed files with 20 additions and 24 deletions
|
|
@ -73,9 +73,8 @@ var _ = framework.IngressNginxDescribe("[SSL] secret update", func() {
|
|||
|
||||
dummySecret.Data["some-key"] = []byte("some value")
|
||||
|
||||
if _, err := f.KubeClientSet.CoreV1().Secrets(f.Namespace).Update(context.TODO(), dummySecret, metav1.UpdateOptions{}); err != nil {
|
||||
assert.Nil(ginkgo.GinkgoT(), err, "updating secret")
|
||||
}
|
||||
_, err = f.KubeClientSet.CoreV1().Secrets(f.Namespace).Update(context.TODO(), dummySecret, metav1.UpdateOptions{})
|
||||
assert.Nil(ginkgo.GinkgoT(), err, "updating secret")
|
||||
|
||||
assert.NotContains(ginkgo.GinkgoT(), log, fmt.Sprintf("starting syncing of secret %v/dummy", f.Namespace))
|
||||
assert.NotContains(ginkgo.GinkgoT(), log, fmt.Sprintf("error obtaining PEM from secret %v/dummy", f.Namespace))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue