protocol/rtmp/parseurl_test.go: correcting test cases with new errors

This commit is contained in:
Saxon Nelson-Milton 2022-03-09 10:44:30 +10:30
parent 37b49d27a0
commit c4e4cc750f
1 changed files with 4 additions and 4 deletions

View File

@ -41,19 +41,19 @@ var parseURLTests = []struct {
}{
{
url: "rtmp://addr",
wantErr: errInvalidURL,
wantErr: errInvalidPath,
},
{
url: "rtmp://addr/",
wantErr: errInvalidURL,
wantErr: errInvalidElements,
},
{
url: "rtmp://addr/live2",
wantErr: errInvalidURL,
wantErr: errInvalidElements,
},
{
url: "rtmp://addr/live2/",
wantErr: errInvalidURL,
wantErr: errInvalidElements,
},
{
url: "rtmp://addr/appname/key",