From efa6958ce83ef4995ad15cc1d3340decf337fea8 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 14 Jan 2026 12:19:32 +0100 Subject: [PATCH] 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 --- pkg/polymorphichelpers/helpers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/polymorphichelpers/helpers_test.go b/pkg/polymorphichelpers/helpers_test.go index 1ed27015e..e9b5cadd3 100644 --- a/pkg/polymorphichelpers/helpers_test.go +++ b/pkg/polymorphichelpers/helpers_test.go @@ -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{ {