mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +00:00
Integration test was not decoding using api.Scheme
This commit is contained in:
parent
94c873e7a4
commit
d97f6cd0d8
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user