fixes TestNestedEncodeError test

This commit is contained in:
Lukasz Szaszkiewicz 2022-02-21 13:03:26 +01:00
parent 52de201b0f
commit 034868e6af

View File

@ -108,8 +108,9 @@ func TestNestedEncodeError(t *testing.T) {
gvk1 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v1"}
gvk2 := schema.GroupVersionKind{Kind: "test", Group: "other", Version: "v2"}
n.SetGroupVersionKind(gvk1)
encoder := &mockSerializer{obj: n}
codec := NewCodec(
nil, nil,
encoder, nil,
&mockConvertor{},
nil,
&mockTyper{gvks: []schema.GroupVersionKind{gvk1, gvk2}},