mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-04 17:24:25 -04:00
* Fix goroutine leaks in ephemeral volume controller test Use context.WithCancel and properly shut down the informer factory and workqueue in TestSyncHandler to prevent goroutine leaks. Previously, the test used context.Background() which never cancels, leaving informer and workqueue goroutines running after test completion. Now that context support has been added to tools/cache (#126387), the informers can be cleanly shut down via context cancellation. Also add goleak.VerifyTestMain to detect goroutine leak regressions. * Remove year from copyright header in main_test.go * Drop main_test.go per review feedback |
||
|---|---|---|
| .. | ||
| attachdetach | ||
| common | ||
| ephemeral | ||
| events | ||
| expand | ||
| persistentvolume | ||
| pvcprotection | ||
| pvprotection | ||
| selinuxwarning | ||
| vacprotection | ||
| OWNERS | ||