launchdarkly / go-server-sdk

LaunchDarkly Server-side SDK for Go
Other
40 stars 17 forks source link

Additional test for Broadcaster data race #152

Closed cwaldren-ld closed 1 month ago

cwaldren-ld commented 1 month ago

This is a small cleanup to the existing Broadcasters implementation to use slices.DeleteFunc.

Additionally, I've upped the number of parallel goroutines used in the new race detection test to 10, to have a slightly higher chance of catching issues, and added a new test that randomly runs the functions against each-other.