make register.GroupVersion use GroupVersion
This commit is contained in:
@@ -71,8 +71,8 @@ func TestDecodeSinglePod(t *testing.T) {
|
||||
t.Errorf("expected:\n%#v\ngot:\n%#v\n%s", pod, podOut, string(json))
|
||||
}
|
||||
|
||||
for _, version := range registered.GroupVersionsForGroup("") {
|
||||
externalPod, err := testapi.Default.Converter().ConvertToVersion(pod, version)
|
||||
for _, gv := range registered.GroupVersionsForGroup("") {
|
||||
externalPod, err := testapi.Default.Converter().ConvertToVersion(pod, gv.String())
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
@@ -137,8 +137,8 @@ func TestDecodePodList(t *testing.T) {
|
||||
t.Errorf("expected:\n%#v\ngot:\n%#v\n%s", podList, &podListOut, string(json))
|
||||
}
|
||||
|
||||
for _, version := range registered.GroupVersionsForGroup("") {
|
||||
externalPodList, err := testapi.Default.Converter().ConvertToVersion(podList, version)
|
||||
for _, gv := range registered.GroupVersionsForGroup("") {
|
||||
externalPodList, err := testapi.Default.Converter().ConvertToVersion(podList, gv.String())
|
||||
if err != nil {
|
||||
t.Errorf("unexpected error: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user