Skip to content

Commit 5b7faca

Browse files
committed
storage/cacher/cacher_whitebox_test:deflake TestCacherDontAcceptRequestsStopped when ResilientWatchCacheInitialization is off
1 parent a45742b commit 5b7faca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ func TestCacherDontAcceptRequestsStopped(t *testing.T) {
861861
},
862862
}, listResult)
863863
if !utilfeature.DefaultFeatureGate.Enabled(features.ResilientWatchCacheInitialization) {
864-
if err == nil {
865-
t.Fatalf("Success to create GetList: %v", err)
864+
if err != nil {
865+
t.Fatalf("Failed to create GetList: %v", err)
866866
}
867867
} else {
868868
if err != nil {

0 commit comments

Comments
 (0)