The purpose of this repository is to reproduce the goroutine leak found in wait.PollUntil
, as exercised through typical use of a SharedInformer
.
dep ensure
go run main.go
You should see the number of goroutines monotonically increase as we continue to call WaitForCacheSync()
.
This is because there is an implicit requirement for the caller to close the stopCh passed to WaitForCacheSync
, even upon
successful completion.