Fix nil bufferfactory in test (#2495)

This commit is contained in:
cnderrauber
2024-02-20 17:06:34 +08:00
committed by GitHub
parent 4404b6796b
commit 628b7c7024
+3
View File
@@ -25,6 +25,7 @@ import (
"go.uber.org/atomic"
"google.golang.org/protobuf/proto"
"github.com/livekit/livekit-server/pkg/sfu/buffer"
"github.com/livekit/livekit-server/pkg/telemetry/telemetryfakes"
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/livekit"
@@ -730,6 +731,8 @@ func newParticipantForTestWithOpts(identity livekit.ParticipantIdentity, opts *p
if err != nil {
panic(err)
}
ff := buffer.NewFactoryOfBufferFactory(500)
rtcConf.SetBufferFactory(ff.CreateBufferFactory())
grants := &auth.ClaimGrants{
Video: &auth.VideoGrant{},
}