mirror of
https://github.com/livekit/livekit.git
synced 2026-03-30 13:25:42 +00:00
Fix race condition with Transport negotiations
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/livekit/livekit-server/pkg/testutils"
|
||||
livekit "github.com/livekit/livekit-server/proto"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
@@ -35,7 +36,7 @@ func TestMultiNodeRouting(t *testing.T) {
|
||||
defer t1.Stop()
|
||||
}
|
||||
|
||||
withTimeout(t, "c2 should receive one track", func() bool {
|
||||
testutils.WithTimeout(t, "c2 should receive one track", func() bool {
|
||||
if len(c2.SubscribedTracks()) == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user