mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +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