From 0e73783c687a84adc5ba8dc4ade185384e4e5fdd Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Thu, 10 Mar 2016 13:01:23 +0100 Subject: [PATCH] Fix resthandler_test in Go 1.6 --- pkg/apiserver/resthandler_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/apiserver/resthandler_test.go b/pkg/apiserver/resthandler_test.go index 50477fc89ad99..0a8849f7e2939 100644 --- a/pkg/apiserver/resthandler_test.go +++ b/pkg/apiserver/resthandler_test.go @@ -38,10 +38,12 @@ import ( type testPatchType struct { unversioned.TypeMeta `json:",inline"` - testPatchSubType `json:",inline"` + TestPatchSubType `json:",inline"` } -type testPatchSubType struct { +// We explicitly make it public as private types doesn't +// work correctly with json inlined types. +type TestPatchSubType struct { StringField string `json:"theField"` }