mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
Added locks when accessing dummyStorage to prevent data race
Removed redundant locks Removed locks and used existing func
This commit is contained in:
parent
fe9e4698a3
commit
eb5d2ca9d8
@ -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!")
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user