Merge pull request #111171 from MadhavJivrajani/conversion-fix

cacher: Use PodList type for use in GetList
This commit is contained in:
Kubernetes Prow Robot 2022-07-15 19:00:53 -07:00 committed by GitHub
commit 98aab0a00d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -647,10 +647,11 @@ func TestCacheDontAcceptRequestsStopped(t *testing.T) {
t.Fatalf("Success to create Get: %v", err)
}
listResult := &example.PodList{}
err = cacher.GetList(context.TODO(), "pods/ns", storage.ListOptions{
ResourceVersion: "1",
Recursive: true,
}, result)
}, listResult)
if err == nil {
t.Fatalf("Success to create GetList: %v", err)
}
@ -660,7 +661,6 @@ func TestCacheDontAcceptRequestsStopped(t *testing.T) {
case <-time.After(wait.ForeverTestTimeout):
t.Errorf("timed out waiting for watch to close")
}
}
func TestTimeBucketWatchersBasic(t *testing.T) {