mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-10-01 07:30:27 +00:00
Update tests to handle codec changes
This commit is contained in:
@@ -212,7 +212,7 @@ func TestCreatePods(t *testing.T) {
|
||||
Spec: controllerSpec.Spec.Template.Spec,
|
||||
}
|
||||
fakeHandler.ValidateRequest(t, testapi.Default.ResourcePath("pods", api.NamespaceDefault, ""), "POST", nil)
|
||||
actualPod, err := client.Codec.Decode([]byte(fakeHandler.RequestBody))
|
||||
actualPod, err := runtime.Decode(client.Codec, []byte(fakeHandler.RequestBody))
|
||||
if err != nil {
|
||||
t.Errorf("Unexpected error: %#v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user