mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
Rename Codec and ResourceVersioner to add Default in front, to allow for types of those names
This commit is contained in:
@@ -38,12 +38,12 @@ func TestNewBindingStorage(t *testing.T) {
|
||||
PodID: "foo",
|
||||
Host: "bar",
|
||||
}
|
||||
body, err := runtime.Encode(binding)
|
||||
body, err := runtime.DefaultCodec.Encode(binding)
|
||||
if err != nil {
|
||||
t.Fatalf("Unexpected encode error %v", err)
|
||||
}
|
||||
obj := b.New()
|
||||
err = runtime.DecodeInto(body, obj)
|
||||
err = runtime.DefaultCodec.DecodeInto(body, obj)
|
||||
if err != nil {
|
||||
t.Fatalf("Unexpected error %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user