fixes TestNestedEncodeError test
This commit is contained in:
		| @@ -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}}, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Lukasz Szaszkiewicz
					Lukasz Szaszkiewicz