mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-24 16:43:37 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user