update test client to use protocol 3

This commit is contained in:
David Zhao
2021-09-10 20:58:33 -07:00
parent 2d215f80b3
commit 1bcaf9d0ea
4 changed files with 29 additions and 56 deletions
+3 -1
View File
@@ -6,6 +6,7 @@ import (
"testing"
"time"
"github.com/livekit/livekit-server/pkg/rtc"
"github.com/stretchr/testify/require"
"github.com/livekit/livekit-server/pkg/testutils"
@@ -69,7 +70,8 @@ func TestSinglePublisher(t *testing.T) {
}
tr1 := c2.SubscribedTracks()[c1.ID()][0]
require.Equal(t, c1.ID(), tr1.StreamID())
participantId, _ := rtc.UnpackStreamID(tr1.StreamID())
require.Equal(t, c1.ID(), participantId)
return true
})
if !success {