Explicitly disable ConsistentListFromCache in TestGetListNonRecursiveCacheBypass

Kubernetes-commit: 4e51e9cff8f48a38bb5ce45e8602842486c3a59e
This commit is contained in:
Marek Siarkowicz 2024-02-26 16:43:24 +01:00 committed by Kubernetes Publisher
parent 461b4082c6
commit 22c2235078
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ func testGetListCacheBypass(t *testing.T, options storage.ListOptions, expectByp
} }
func TestGetListNonRecursiveCacheBypass(t *testing.T) { func TestGetListNonRecursiveCacheBypass(t *testing.T) {
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ConsistentListFromCache, false)
backingStorage := &dummyStorage{} backingStorage := &dummyStorage{}
cacher, _, err := newTestCacher(backingStorage) cacher, _, err := newTestCacher(backingStorage)
if err != nil { if err != nil {