mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
storage/testing: Use Int64 method for pointers
Int64Ptr is now deprecated. Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
This commit is contained in:
parent
b3d8ac8496
commit
1d639085ee
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user