mirror of
https://github.com/livekit/livekit.git
synced 2026-03-29 09:19:53 +00:00
Expose Participant.IsPublisher to differentiate pubs from subs (#643)
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -17,7 +19,7 @@ func WithTimeout(t *testing.T, f func() string) {
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
t.Fatal("timed out: " + lastErr)
|
||||
require.Empty(t, lastErr)
|
||||
case <-time.After(10 * time.Millisecond):
|
||||
lastErr = f()
|
||||
if lastErr == "" {
|
||||
|
||||
Reference in New Issue
Block a user