fix TestDriveCheckListFromCacheDataConsistencyIfRequested

Kubernetes-commit: 82794c4963144bf5298089030733f993a44f7c3b
This commit is contained in:
Lukasz Szaszkiewicz 2024-06-05 22:41:09 +02:00 committed by Kubernetes Publisher
parent b03e5b8438
commit bbe85a4a80

View File

@ -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) {