mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
fix TestDriveCheckListFromCacheDataConsistencyIfRequested
This commit is contained in:
parent
9e2075b3c8
commit
82794c4963
@ -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