Skip to content

Commit

Permalink
Improve the issue test
Browse files Browse the repository at this point in the history
  • Loading branch information
joeturki committed Jan 4, 2025
1 parent b0f93b5 commit e5461ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion peerconnection_go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1747,9 +1747,11 @@ a=ssrc:29586368 cname:janus
return
}

// 0 or 1 mid assert that
// ice candidates have the correct mid and mLineIndex
assert.NotEmpty(t, candidate.SDPMid)

assert.Contains(t, []string{"0", "1"}, candidate.SDPMid)
assert.Contains(t, []uint16{0, 1}, candidate.SDPMLineIndex)
})

assert.NoError(t, pc.SetRemoteDescription(SessionDescription{
Expand Down

0 comments on commit e5461ae

Please sign in to comment.