Commit 14ae96ad authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #36736 from tianshapjq/json_test

Automatic merge from submit-queue (batch tested with PRs 36736, 35956, 35655, 37713, 38316) delete one testcase from json_test.go for duplicated data in json_test.go there are 2 duplicated tesecases. Here I'm going to delete one of them. Please review for this. thanks!
parents 133117e1 617a1e74
...@@ -68,14 +68,6 @@ func TestDecode(t *testing.T) { ...@@ -68,14 +68,6 @@ func TestDecode(t *testing.T) {
errFn: func(err error) bool { return err.Error() == "fake error" }, errFn: func(err error) bool { return err.Error() == "fake error" },
}, },
{ {
data: []byte("{}"),
defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"},
creater: &mockCreater{err: fmt.Errorf("fake error")},
expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"},
errFn: func(err error) bool { return err.Error() == "fake error" },
},
{
data: []byte("{}"), data: []byte("{}"),
defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"}, defaultGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"},
creater: &mockCreater{obj: &testDecodable{}}, creater: &mockCreater{obj: &testDecodable{}},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment