mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
Merge pull request #125356 from p0lyn0mial/upstream-improve-testdrivechecklistfromcache-test
improve TestDriveCheckListFromCacheDataConsistencyIfRequested
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user