Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben committed Nov 27, 2024
1 parent 0ab9791 commit 808c27d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/ffprobe.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ func verify(t *testing.T, in string, p *config.PipelineConfig, res *livekit.Egre
require.NoError(t, err, "ffprobe failed for input %s", in)
}

// Check source type
if p.RequestType == types.RequestTypeRoomComposite && p.VideoEnabled {
require.Equal(t, types.SourceTypeWeb, res.SourceType)
} else {
require.Equal(t, types.SourceTypeSDK, res.SourceType)
}

switch egressType {
case types.EgressTypeFile:
// size
Expand Down
1 change: 1 addition & 0 deletions test/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ func NewRunner(t *testing.T) *Runner {
require.NoError(t, err)

r.ServiceConfig = conf
r.ServiceConfig.EnableRoomCompositeSDKSource = true

if conf.ApiKey == "" || conf.ApiSecret == "" || conf.WsUrl == "" {
t.Fatal("api key, secret, and ws url required")
Expand Down

0 comments on commit 808c27d

Please sign in to comment.