working CI test workflow, more reliable transport_test

This commit is contained in:
David Zhao
2021-06-03 22:31:31 -07:00
parent 8f46e0f4da
commit 24919d8ccb
4 changed files with 31 additions and 8 deletions
-1
View File
@@ -340,7 +340,6 @@ func (c *RTCClient) ReadResponse() (*livekit.SignalResponse, error) {
}
}
// TODO: this function is not thread safe, need to cleanup
func (c *RTCClient) SubscribedTracks() map[string][]*webrtc.TrackRemote {
// create a copy of this
c.lock.Lock()
+4
View File
@@ -5,6 +5,7 @@ import (
"testing"
"time"
"github.com/livekit/livekit-server/pkg/logger"
testclient "github.com/livekit/livekit-server/test/client"
"github.com/stretchr/testify/require"
)
@@ -40,6 +41,9 @@ func TestSinglePublisher(t *testing.T) {
return
}
logger.Infow("\n\n---Starting TestSinglePublisher---")
defer logger.Infow("---Finishing TestSinglePublisher---")
s := setupSingleNodeTest(testRoom)
defer func() {
teardownTest(s, testRoom)