storage/cacher/cacher_whitebox_test.go: deflake TestWaitUntilFreshAndListFromCache

Kubernetes-commit: 662672a6cacd71ad0cfc168a793d6a75a7e0ffff
This commit is contained in:
Lukasz Szaszkiewicz 2024-06-26 15:04:15 +02:00 committed by Kubernetes Publisher
parent 877dea3f40
commit 9afcce8b2b
1 changed files with 1 additions and 0 deletions

View File

@ -535,6 +535,7 @@ func TestWaitUntilFreshAndList(t *testing.T) {
func TestWaitUntilFreshAndListFromCache(t *testing.T) {
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ConsistentListFromCache, true)
forceRequestWatchProgressSupport(t)
ctx := context.Background()
store := newTestWatchCache(3, &cache.Indexers{})
defer store.Stop()