Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeTurki committed Jan 4, 2025
1 parent 31900fa commit 2d569fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions peerconnection_go_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1763,4 +1763,8 @@ a=ssrc:29586368 cname:janus
assert.NoError(t, pc.SetLocalDescription(ans))

<-gatherComplete

assert.NoError(t, pc.Close())

assert.Equal(t, PeerConnectionStateClosed, pc.ConnectionState())
}
8 changes: 4 additions & 4 deletions sdp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func TestExtractICEDetails(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, details.Ufrag, defaultUfrag)
assert.Equal(t, details.Password, defaultPwd)
assert.Equal(t, details.SDPMLineIndex, 0)
assert.Equal(t, details.SDPMLineIndex, uint16(0))
assert.Equal(t, details.SDPMid, "")
})

Expand Down Expand Up @@ -200,7 +200,7 @@ func TestExtractICEDetails(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, details.Ufrag, defaultUfrag)
assert.Equal(t, details.Password, defaultPwd)
assert.Equal(t, details.SDPMLineIndex, 0)
assert.Equal(t, details.SDPMLineIndex, uint16(0))
assert.Equal(t, details.SDPMid, "")
})

Expand Down Expand Up @@ -231,7 +231,7 @@ func TestExtractICEDetails(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, details.Ufrag, defaultUfrag)
assert.Equal(t, details.Password, defaultPwd)
assert.Equal(t, details.SDPMLineIndex, 1)
assert.Equal(t, details.SDPMLineIndex, uint16(1))
assert.Equal(t, details.SDPMid, "5")
})

Expand All @@ -258,7 +258,7 @@ func TestExtractICEDetails(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, details.Ufrag, defaultUfrag)
assert.Equal(t, details.Password, defaultPwd)
assert.Equal(t, details.SDPMLineIndex, 0)
assert.Equal(t, details.SDPMLineIndex, uint16(0))
assert.Equal(t, details.SDPMid, "5")
})

Expand Down

0 comments on commit 2d569fd

Please sign in to comment.