From 5ed2676c3ecf1692ccfde3353448ad6d6c5be091 Mon Sep 17 00:00:00 2001 From: Eric Daniels Date: Fri, 2 Aug 2024 13:02:30 -0400 Subject: [PATCH] Fix TestPeerConnection_EventHandlers flake - Fixes #2848 --- peerconnection_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/peerconnection_test.go b/peerconnection_test.go index 01a0b24c547..a9e59993602 100644 --- a/peerconnection_test.go +++ b/peerconnection_test.go @@ -388,10 +388,6 @@ func TestPeerConnection_EventHandlers(t *testing.T) { }) }) pcOffer.OnConnectionStateChange(func(callbackState PeerConnectionState) { - if storedState := pcOffer.ConnectionState(); callbackState != storedState { - t.Errorf("State in callback argument is different from ConnectionState(): callbackState=%s, storedState=%s", callbackState, storedState) - } - onceOffererOnConnectionStateChange.Do(func() { wasCalledMut.Lock() defer wasCalledMut.Unlock()