fix TestDriveCheckListFromCacheDataConsistencyIfRequested
This commit is contained in:
		@@ -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) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user