mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-04-26 08:37:09 -04:00
client-go testing: start ResourceVersion at 1 for empty set
List should never return "0", that has a special meaning in queries. Kubernetes-commit: 3783a720e7278466859fe140d2bfbbfb054f5313
This commit is contained in:
parent
3a767404cb
commit
efa6958ce8
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ func TestGetPodList(t *testing.T) {
|
|||
sortBy: func(pods []*corev1.Pod) sort.Interface { return podutils.ByLogging(pods) },
|
||||
expected: &corev1.PodList{
|
||||
ListMeta: metav1.ListMeta{
|
||||
ResourceVersion: "2", // Two objects created.
|
||||
ResourceVersion: "3", // Two objects created, initial value is 1.
|
||||
},
|
||||
Items: []corev1.Pod{
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue