mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
fixes TestNestedEncodeError test
This commit is contained in:
parent
52de201b0f
commit
034868e6af
@ -108,8 +108,9 @@ func TestNestedEncodeError(t *testing.T) {
|
|||||||
gvk1 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v1"}
|
gvk1 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v1"}
|
||||||
gvk2 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v2"}
|
gvk2 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v2"}
|
||||||
n.SetGroupVersionKind(gvk1)
|
n.SetGroupVersionKind(gvk1)
|
||||||
|
encoder := &mockSerializer{obj: n}
|
||||||
codec := NewCodec(
|
codec := NewCodec(
|
||||||
nil, nil,
|
encoder, nil,
|
||||||
&mockConvertor{},
|
&mockConvertor{},
|
||||||
nil,
|
nil,
|
||||||
&mockTyper{gvks: []schema.GroupVersionKind{gvk1, gvk2}},
|
&mockTyper{gvks: []schema.GroupVersionKind{gvk1, gvk2}},
|
||||||
|
Loading…
Reference in New Issue
Block a user