mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
missing format args in apiserver/pkg/endpoints
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
This commit is contained in:
parent
4904037645
commit
08b0883734
@ -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