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