Commit f369c1af authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #53177 from alrs/fix-client-go-record-swallowed-errors

Automatic merge from submit-queue (batch tested with PRs 49249, 53203, 53209, 53208, 53177). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. vendor/k8s.io/client-go/tools/record: Fix two swallowed errors in tests **What this PR does / why we need it**: Fixes two dropped errors in client-go. ```release-note NONE ```
parents e44eaaaa b64a0a8f
...@@ -120,6 +120,9 @@ func TestEventf(t *testing.T) { ...@@ -120,6 +120,9 @@ func TestEventf(t *testing.T) {
}, },
} }
testRef, err := ref.GetPartialReference(scheme.Scheme, testPod, "spec.containers[2]") testRef, err := ref.GetPartialReference(scheme.Scheme, testPod, "spec.containers[2]")
if err != nil {
t.Fatal(err)
}
testRef2, err := ref.GetPartialReference(scheme.Scheme, testPod2, "spec.containers[3]") testRef2, err := ref.GetPartialReference(scheme.Scheme, testPod2, "spec.containers[3]")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
...@@ -641,6 +644,9 @@ func TestMultiSinkCache(t *testing.T) { ...@@ -641,6 +644,9 @@ func TestMultiSinkCache(t *testing.T) {
}, },
} }
testRef, err := ref.GetPartialReference(scheme.Scheme, testPod, "spec.containers[2]") testRef, err := ref.GetPartialReference(scheme.Scheme, testPod, "spec.containers[2]")
if err != nil {
t.Fatal(err)
}
testRef2, err := ref.GetPartialReference(scheme.Scheme, testPod2, "spec.containers[3]") testRef2, err := ref.GetPartialReference(scheme.Scheme, testPod2, "spec.containers[3]")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment