mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-24 14:12:18 +00:00
fix TestDriveCheckListFromCacheDataConsistencyIfRequested
Kubernetes-commit: 82794c4963144bf5298089030733f993a44f7c3b
This commit is contained in:
parent
b03e5b8438
commit
bbe85a4a80
@ -29,7 +29,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
emptyListFunc = func(_ context.Context, opts metav1.ListOptions) (*v1.PodList, error) {
|
emptyListFunc = func(_ context.Context, opts metav1.ListOptions) (*v1.PodList, error) {
|
||||||
return nil, nil
|
return &v1.PodList{}, nil
|
||||||
}
|
}
|
||||||
emptyListOptions = metav1.ListOptions{}
|
emptyListOptions = metav1.ListOptions{}
|
||||||
)
|
)
|
||||||
@ -37,7 +37,7 @@ var (
|
|||||||
func TestDriveCheckListFromCacheDataConsistencyIfRequested(t *testing.T) {
|
func TestDriveCheckListFromCacheDataConsistencyIfRequested(t *testing.T) {
|
||||||
ctx := context.TODO()
|
ctx := context.TODO()
|
||||||
|
|
||||||
CheckListFromCacheDataConsistencyIfRequested(ctx, "", emptyListFunc, emptyListOptions, nil)
|
CheckListFromCacheDataConsistencyIfRequested(ctx, "", emptyListFunc, emptyListOptions, &v1.PodList{})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCheckListFromCacheDataConsistencyIfRequestedInternalPanics(t *testing.T) {
|
func TestCheckListFromCacheDataConsistencyIfRequestedInternalPanics(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user