Merge pull request #119654 from p0lyn0mial/upstream-watch-list-e2e-panic

e2e/apimachinery/watchlist: stop panicking when run against unsupported cluster/environment
This commit is contained in:
Kubernetes Prow Robot 2023-08-16 09:32:46 -07:00 committed by GitHub
commit dd177629ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,6 @@ var _ = SIGDescribe("API Streaming (aka. WatchList) [Serial] [Feature:WatchList]
secretInformer := cache.NewSharedIndexInformer(
&cache.ListWatch{
ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
framework.Fail("Unexpected list call")
return nil, fmt.Errorf("unexpected list call")
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {