Simple refactor for ease of readability
runtime.DefaultCodec -> latest.Codec
This commit is contained in:
@@ -201,13 +201,13 @@ func TestPodDecode(t *testing.T) {
|
||||
ID: "foo",
|
||||
},
|
||||
}
|
||||
body, err := runtime.DefaultCodec.Encode(expected)
|
||||
body, err := latest.Codec.Encode(expected)
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
|
||||
actual := storage.New()
|
||||
if err := runtime.DefaultCodec.DecodeInto(body, actual); err != nil {
|
||||
if err := latest.Codec.DecodeInto(body, actual); err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user