samber / do

⚙️ A dependency injection toolkit based on Go 1.18+ Generics.
https://pkg.go.dev/github.com/samber/do
MIT License
1.71k stars 67 forks source link

Lock Around Service Shutdown Cleanup #59

Closed maddiesch closed 2 months ago

maddiesch commented 4 months ago

We are getting periodic flaky tests when shutting down services. The stack trace points back to the delete from i.services.

I'm unable to figure out how to write a test that consistently reproduces the issue.