mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-28 04:13:52 +00:00
Update tests to handle codec changes
This commit is contained in:
@@ -39,7 +39,7 @@ func TestDecoder(t *testing.T) {
|
||||
expect := &api.Pod{ObjectMeta: api.ObjectMeta{Name: "foo"}}
|
||||
encoder := json.NewEncoder(in)
|
||||
go func() {
|
||||
data, err := testapi.Default.Codec().Encode(expect)
|
||||
data, err := runtime.Encode(testapi.Default.Codec(), expect)
|
||||
if err != nil {
|
||||
t.Fatalf("Unexpected error %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user