mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Update tests to handle codec changes
This commit is contained in:
@@ -441,7 +441,7 @@ func refJson(t *testing.T, o runtime.Object) string {
|
||||
}
|
||||
|
||||
_, _, codec := NewAPIFactory()
|
||||
json, err := codec.Encode(&api.SerializedReference{Reference: *ref})
|
||||
json, err := runtime.Encode(codec, &api.SerializedReference{Reference: *ref})
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user