Merge pull request #124004 from srivastav-abhishek/catcher-test-fix

Fixed flake test due to data race in while accessing dummyStorage in cacher-test
This commit is contained in:
Kubernetes Prow Robot 2024-04-18 02:11:11 -07:00 committed by GitHub
commit 9966d05dba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1665,7 +1665,7 @@ func TestWaitUntilWatchCacheFreshAndForceAllEvents(t *testing.T) {
ResourceVersion: "105",
},
verifyBackingStore: func(t *testing.T, s *dummyStorage) {
require.NotEqual(t, 0, s.requestWatchProgressCounter, "expected store.RequestWatchProgressCounter to be > 0. It looks like watch progress wasn't requested!")
require.NotEqual(t, 0, s.getRequestWatchProgressCounter(), "expected store.RequestWatchProgressCounter to be > 0. It looks like watch progress wasn't requested!")
},
},