chore(merge): merge main into develop

Resolves CHANGELOG.md conflict: preserve develop's [Unreleased] block,
insert the [9.3.1] section from main, remove the duplicate
DisableSaveIntegrityCheck entry that had been in [Unreleased].
This commit is contained in:
Houmgaor
2026-03-23 11:15:20 +01:00
20 changed files with 279 additions and 101 deletions

View File

@@ -279,13 +279,26 @@ func TestBroadcastMHFAllSessions(t *testing.T) {
testPkt := &mhfpacket.MsgSysNop{}
server.BroadcastMHF(testPkt, nil)
time.Sleep(100 * time.Millisecond)
// Poll until all sessions have received the packet or the deadline is reached.
deadline := time.Now().Add(2 * time.Second)
for time.Now().Before(deadline) {
receivedCount := 0
for _, sess := range server.sessions {
mock := sess.cryptConn.(*MockCryptConn)
if mock.PacketCount() > 0 {
receivedCount++
}
}
if receivedCount == sessionCount {
break
}
time.Sleep(1 * time.Millisecond)
}
// Stop all sessions
for _, sess := range sessions {
sess.closed.Store(true)
}
time.Sleep(50 * time.Millisecond)
// Verify all sessions received the packet
receivedCount := 0