Merge pull request #89164 from tkashem/cache-test-fix

Fix data race issue in unit test
This commit is contained in:
Kubernetes Prow Robot 2020-03-19 06:05:14 -07:00 committed by GitHub
commit 2fa96eca4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -793,7 +793,7 @@ func TestDispatchingBookmarkEventsWithConcurrentStop(t *testing.T) {
wg := sync.WaitGroup{}
wg.Add(2)
go func() {
cacher.dispatchEvent(bookmark)
cacher.processEvent(bookmark)
wg.Done()
}()