Skip to content

v1.3.113

Choose a tag to compare

@topcheer topcheer released this 03 Jul 20:27
· 3708 commits to main since this release

v1.3.113

Bug Fixes

Fixed data races in test code

Three tests had data races detected by go test -race:

  1. TestSetReflectionFunc (internal/agent): called and receivedStats
    were written from a reflection goroutine and read from the test goroutine
    without synchronization. Replaced time.Sleep with a done channel and mutex.

  2. TestPresenceLeaveNotificationDelayed and
    TestPresenceLeaveNotificationDelayed (internal/lanchat):
    joinCount/leaveCount counters were written from safego.Go callback
    goroutines and read from the test goroutine without synchronization.
    Converted all counters to atomic.Int32.

Also fixed two additional tests with the same pattern:
TestPresenceLeaveSuppressedOnQuickRecovery and
TestPresencePeerDeletedAfterLongAbsence.