From d97f6cd0d8f02f345d2e3f30c75c1d684d1616d7 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Thu, 6 Nov 2014 17:01:40 -0500 Subject: [PATCH] Integration test was not decoding using api.Scheme --- cmd/integration/integration.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/integration/integration.go b/cmd/integration/integration.go index 1d07f2035d4..0f7cc50a13f 100644 --- a/cmd/integration/integration.go +++ b/cmd/integration/integration.go @@ -19,7 +19,6 @@ limitations under the License. package main import ( - "encoding/json" "io/ioutil" "net" "net/http" @@ -238,7 +237,7 @@ func runReplicationControllerTest(c *client.Client) { glog.Fatalf("Unexpected error: %#v", err) } var controller api.ReplicationController - if err := json.Unmarshal(data, &controller); err != nil { + if err := api.Scheme.DecodeInto(data, &controller); err != nil { glog.Fatalf("Unexpected error: %#v", err) }