v1.3.113
v1.3.113
Bug Fixes
Fixed data races in test code
Three tests had data races detected by go test -race:
-
TestSetReflectionFunc(internal/agent):calledandreceivedStats
were written from a reflection goroutine and read from the test goroutine
without synchronization. Replacedtime.Sleepwith a done channel and mutex. -
TestPresenceLeaveNotificationDelayedand
TestPresenceLeaveNotificationDelayed(internal/lanchat):
joinCount/leaveCountcounters were written fromsafego.Gocallback
goroutines and read from the test goroutine without synchronization.
Converted all counters toatomic.Int32.
Also fixed two additional tests with the same pattern:
TestPresenceLeaveSuppressedOnQuickRecovery and
TestPresencePeerDeletedAfterLongAbsence.