Update tests to handle codec changes
This commit is contained in:
@@ -132,7 +132,7 @@ func TestReadPodsFromFile(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("%s: error in versioning the pod: %v", testCase.desc, err)
|
||||
}
|
||||
fileContents, err := testapi.Default.Codec().Encode(versionedPod)
|
||||
fileContents, err := runtime.Encode(testapi.Default.Codec(), versionedPod)
|
||||
if err != nil {
|
||||
t.Fatalf("%s: error in encoding the pod: %v", testCase.desc, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user