storage/cacher/cacher_whitebox_test:deflake TestCacherDontAcceptRequestsStopped when ResilientWatchCacheInitialization is off

Kubernetes-commit: 5b7faca6b66dc0664f36c611867f5799377b0514
This commit is contained in:
Lukasz Szaszkiewicz 2024-09-20 06:40:47 +02:00 committed by Kubernetes Publisher
parent 1a9bf77ab1
commit 87a5cdebbc
1 changed files with 2 additions and 2 deletions

View File

@ -866,8 +866,8 @@ func TestCacherDontAcceptRequestsStopped(t *testing.T) {
},
}, listResult)
if !utilfeature.DefaultFeatureGate.Enabled(features.ResilientWatchCacheInitialization) {
if err == nil {
t.Fatalf("Success to create GetList: %v", err)
if err != nil {
t.Fatalf("Failed to create GetList: %v", err)
}
} else {
if err != nil {