mediamtx/internal/protocols/rtmp/to_stream_test.go
Alessandro Ros 471019f606
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
warn users about skipped tracks when reading or publishing (#3753)
2024-09-15 19:28:05 +02:00

17 lines
353 B
Go

package rtmp
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestToStreamNoSupportedCodecs(t *testing.T) {
r := &Reader{}
_, err := ToStream(r, nil)
require.Equal(t, errNoSupportedCodecsTo, err)
}
// this is impossible to test since currently we support all RTMP tracks.
// func TestToStreamSkipUnsupportedTracks(t *testing.T)