Fix nil bufferfactory in test (#2495)
This commit is contained in:
@@ -25,6 +25,7 @@ import (
|
|||||||
"go.uber.org/atomic"
|
"go.uber.org/atomic"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
|
"github.com/livekit/livekit-server/pkg/sfu/buffer"
|
||||||
"github.com/livekit/livekit-server/pkg/telemetry/telemetryfakes"
|
"github.com/livekit/livekit-server/pkg/telemetry/telemetryfakes"
|
||||||
"github.com/livekit/protocol/auth"
|
"github.com/livekit/protocol/auth"
|
||||||
"github.com/livekit/protocol/livekit"
|
"github.com/livekit/protocol/livekit"
|
||||||
@@ -730,6 +731,8 @@ func newParticipantForTestWithOpts(identity livekit.ParticipantIdentity, opts *p
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
ff := buffer.NewFactoryOfBufferFactory(500)
|
||||||
|
rtcConf.SetBufferFactory(ff.CreateBufferFactory())
|
||||||
grants := &auth.ClaimGrants{
|
grants := &auth.ClaimGrants{
|
||||||
Video: &auth.VideoGrant{},
|
Video: &auth.VideoGrant{},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user