Added locks when accessing dummyStorage to prevent data race

Removed redundant locks

Removed locks and used existing func
This commit is contained in:
Abhishek Kr Srivastav 2024-03-20 14:23:33 +05:30
parent fe9e4698a3
commit eb5d2ca9d8

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!")
},
},