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()