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

This commit is contained in:
Lukasz Szaszkiewicz
2024-09-20 06:40:47 +02:00
parent a45742b271
commit 5b7faca6b6

View File

@@ -861,8 +861,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 {