e2e/apimachinery/watchlist: stop panicking when run against unsupported cluster/environment

This commit is contained in:
Lukasz Szaszkiewicz 2023-07-28 12:25:13 +02:00
parent 97c7dbcd22
commit a44ce346d7

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) {