Serialization test should verify encode does not mutate in

This commit is contained in:
Clayton Coleman
2016-05-20 20:24:03 -04:00
parent 2faf49c75c
commit 8b01cfe1eb
2 changed files with 18 additions and 5 deletions

View File

@@ -204,8 +204,8 @@ func TestResourceListConversion(t *testing.T) {
},
}
output := api.ResourceList{}
for i, test := range tests {
output := api.ResourceList{}
err := api.Scheme.Convert(&test.input, &output)
if err != nil {
t.Fatalf("unexpected error for case %d: %v", i, err)