Commit d97f6cd0 authored by Clayton Coleman's avatar Clayton Coleman

Integration test was not decoding using api.Scheme

parent 94c873e7
...@@ -19,7 +19,6 @@ limitations under the License. ...@@ -19,7 +19,6 @@ limitations under the License.
package main package main
import ( import (
"encoding/json"
"io/ioutil" "io/ioutil"
"net" "net"
"net/http" "net/http"
...@@ -238,7 +237,7 @@ func runReplicationControllerTest(c *client.Client) { ...@@ -238,7 +237,7 @@ func runReplicationControllerTest(c *client.Client) {
glog.Fatalf("Unexpected error: %#v", err) glog.Fatalf("Unexpected error: %#v", err)
} }
var controller api.ReplicationController 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) glog.Fatalf("Unexpected error: %#v", err)
} }
......
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