From f8649f6cf11307287c5289932b9f85181553cf0e Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Tue, 16 Sep 2025 11:18:47 +0200 Subject: [PATCH] fix race condition in tests (#894) --- server_play_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server_play_test.go b/server_play_test.go index 25f1d32c..b41eeed7 100644 --- a/server_play_test.go +++ b/server_play_test.go @@ -707,7 +707,7 @@ func TestServerPlay(t *testing.T) { ctx.Session.OnPacketRTCPAny(func(medi *description.Media, pkt rtcp.Packet) { // ignore multicast loopback - if ca.secure == "unsecure" && ca.transport == "multicast" && atomic.AddUint64(&counter, 1) <= 1 { + if ca.secure == "unsecure" && ca.transport == "multicast" && atomic.AddUint64(&counter, 1) > 1 { return }