Commit b093af57 authored by Chao Xu's avatar Chao Xu

cleanse common_test.go of v1beta1

parent 9f60f3ce
...@@ -120,11 +120,6 @@ func TestDecodePodList(t *testing.T) { ...@@ -120,11 +120,6 @@ func TestDecodePodList(t *testing.T) {
t.Errorf("unexpected error: %v", err) t.Errorf("unexpected error: %v", err)
} }
parsed, podListOut, err := tryDecodePodList(json, noDefault) parsed, podListOut, err := tryDecodePodList(json, noDefault)
if testapi.Version() == "v1beta1" {
// v1beta1 conversion leaves empty lists that should be nil
podListOut.Items[0].Spec.Containers[0].Resources.Limits = nil
podListOut.Items[0].Spec.Containers[0].Resources.Requests = nil
}
if !parsed { if !parsed {
t.Errorf("expected to have parsed file: (%s)", string(json)) t.Errorf("expected to have parsed file: (%s)", string(json))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment