mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #56268 from yanxuean/miss-fmt-args
Automatic merge from submit-queue (batch tested with PRs 56217, 56268, 56263, 56328, 56200). 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>. missing format args in apiserver/pkg/endpoints Signed-off-by: yanxuean <yan.xuean@zte.com.cn> **What this PR does / why we need it**: missing format args in apiserver/pkg/endpoints **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
5aa03d978d
@ -1958,11 +1958,11 @@ func TestGetTable(t *testing.T) {
|
||||
}
|
||||
obj, _, err := extractBodyObject(resp, unstructured.UnstructuredJSONScheme)
|
||||
if err != nil {
|
||||
t.Fatalf("%d: unexpected body read error: %v", err)
|
||||
t.Fatalf("%d: unexpected body read error: %v", i, err)
|
||||
}
|
||||
gvk := schema.GroupVersionKind{Version: "v1", Kind: "Status"}
|
||||
if obj.GetObjectKind().GroupVersionKind() != gvk {
|
||||
t.Fatalf("%d: unexpected error body: %#v", obj)
|
||||
t.Fatalf("%d: unexpected error body: %#v", i, obj)
|
||||
}
|
||||
return
|
||||
}
|
||||
@ -2083,12 +2083,12 @@ func TestGetPartialObjectMetadata(t *testing.T) {
|
||||
}
|
||||
obj, _, err := extractBodyObject(resp, unstructured.UnstructuredJSONScheme)
|
||||
if err != nil {
|
||||
t.Errorf("%d: unexpected body read error: %v", err)
|
||||
t.Errorf("%d: unexpected body read error: %v", i, err)
|
||||
continue
|
||||
}
|
||||
gvk := schema.GroupVersionKind{Version: "v1", Kind: "Status"}
|
||||
if obj.GetObjectKind().GroupVersionKind() != gvk {
|
||||
t.Errorf("%d: unexpected error body: %#v", obj)
|
||||
t.Errorf("%d: unexpected error body: %#v", i, obj)
|
||||
}
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user