mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Merge pull request #18487 from smarterclayton/guard_encode_decode
Auto commit by PR queue bot
This commit is contained in:
@@ -275,7 +275,7 @@ func TestSetDefaultJob(t *testing.T) {
|
||||
}
|
||||
|
||||
func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
|
||||
data, err := Codec.Encode(obj)
|
||||
data, err := runtime.Encode(Codec, obj)
|
||||
if err != nil {
|
||||
t.Errorf("%v\n %#v", err, obj)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user