PostHog / posthog-go

Official PostHog Go library
MIT License
20 stars 17 forks source link

fix feature flags race condition #21

Closed verygoodsoftwarenotvirus closed 11 months ago

verygoodsoftwarenotvirus commented 11 months ago

I was writing tests for a utility where I use the PostHog API client, and kept running into race detection issues at this line. I couldn't even successfully run make test without triggering this issue. Those tests no longer yield a race condition warning, and I've added the flag to the action definition for unit testing. :)