Files
livekit/pkg/sfu
Raja SubramanianandClaude Opus 4.8 a8afbd69bd Fix data race on global logger in sfu downtrack integration test (#5036)
TestDownTrackResumesAfterBandwidthPause called logger.InitFromConfig
(SetLogger) mid-run while the hwstats CPU monitor goroutine, started by
prometheus.Init in forwardstats_test, read the same non-atomic logger
package globals. go test -race flagged the write-vs-read and failed CI.

Set the global logger once in TestMain, before any test starts that
goroutine, and drop the per-test InitFromConfig.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-10-21 12:14:51 +05:30
..
2023-07-27 16:43:19 -07:00
2021-11-08 20:56:53 -08:00