Skip to content

Commit

Permalink
Fix TestPeerConnection_EventHandlers flake
Browse files Browse the repository at this point in the history
- Fixes #2848
  • Loading branch information
edaniels committed Aug 2, 2024
1 parent cbe3465 commit 5ed2676
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions peerconnection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,6 @@ func TestPeerConnection_EventHandlers(t *testing.T) {
})
})
pcOffer.OnConnectionStateChange(func(callbackState PeerConnectionState) {

Check warning on line 390 in peerconnection_test.go

View workflow job for this annotation

GitHub Actions / lint / Go

unused-parameter: parameter 'callbackState' seems to be unused, consider removing or renaming it as _ (revive)
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()
Expand Down

0 comments on commit 5ed2676

Please sign in to comment.