mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
Merge pull request #9918 from caesarxuchao/common_test
remove references to v1beta1 in common_test.go
This commit is contained in:
commit
43889c612c
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user