Skip to content

Commit 4e51e9c

Browse files
committed
Explicitly disable ConsistentListFromCache in TestGetListNonRecursiveCacheBypass
1 parent 1519f80 commit 4e51e9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ func testGetListCacheBypass(t *testing.T, options storage.ListOptions, expectByp
285285
}
286286

287287
func TestGetListNonRecursiveCacheBypass(t *testing.T) {
288+
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.ConsistentListFromCache, false)
288289
backingStorage := &dummyStorage{}
289290
cacher, _, err := newTestCacher(backingStorage)
290291
if err != nil {

0 commit comments

Comments
 (0)