diff --git a/staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go b/staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go index 75d17ecacead6..5a4d51701811d 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go @@ -660,7 +660,7 @@ func RunTestList(ctx context.Context, t *testing.T, store storage.Interface, ign }, expectedOut: []example.Pod{*preset[1]}, expectContinue: true, - expectedRemainingItemCount: utilpointer.Int64Ptr(1), + expectedRemainingItemCount: utilpointer.Int64(1), }, { name: "test List with limit at current resource version", @@ -672,7 +672,7 @@ func RunTestList(ctx context.Context, t *testing.T, store storage.Interface, ign }, expectedOut: []example.Pod{*preset[1]}, expectContinue: true, - expectedRemainingItemCount: utilpointer.Int64Ptr(1), + expectedRemainingItemCount: utilpointer.Int64(1), rv: list.ResourceVersion, expectRV: list.ResourceVersion, }, @@ -686,7 +686,7 @@ func RunTestList(ctx context.Context, t *testing.T, store storage.Interface, ign }, expectedOut: []example.Pod{*preset[1]}, expectContinue: true, - expectedRemainingItemCount: utilpointer.Int64Ptr(1), + expectedRemainingItemCount: utilpointer.Int64(1), rv: list.ResourceVersion, rvMatch: metav1.ResourceVersionMatchExact, expectRV: list.ResourceVersion, @@ -701,7 +701,7 @@ func RunTestList(ctx context.Context, t *testing.T, store storage.Interface, ign }, expectedOut: []example.Pod{*preset[1]}, expectContinue: true, - expectedRemainingItemCount: utilpointer.Int64Ptr(1), + expectedRemainingItemCount: utilpointer.Int64(1), rv: list.ResourceVersion, rvMatch: metav1.ResourceVersionMatchNotOlderThan, expectRV: list.ResourceVersion, @@ -721,7 +721,7 @@ func RunTestList(ctx context.Context, t *testing.T, store storage.Interface, ign ignoreForWatchCache: true, expectedOut: []example.Pod{*preset[1]}, expectContinue: true, - expectedRemainingItemCount: utilpointer.Int64Ptr(1), + expectedRemainingItemCount: utilpointer.Int64(1), rv: "0", expectRVFunc: resourceVersionNotOlderThan(list.ResourceVersion), }, @@ -740,7 +740,7 @@ func RunTestList(ctx context.Context, t *testing.T, store storage.Interface, ign ignoreForWatchCache: true, expectedOut: []example.Pod{*preset[1]}, expectContinue: true, - expectedRemainingItemCount: utilpointer.Int64Ptr(1), + expectedRemainingItemCount: utilpointer.Int64(1), rv: "0", rvMatch: metav1.ResourceVersionMatchNotOlderThan, expectRVFunc: resourceVersionNotOlderThan(list.ResourceVersion),