From c4e4cc750f7092ec34cea9cadb76890e300e3cd1 Mon Sep 17 00:00:00 2001 From: Saxon Nelson-Milton Date: Wed, 9 Mar 2022 10:44:30 +1030 Subject: [PATCH] protocol/rtmp/parseurl_test.go: correcting test cases with new errors --- protocol/rtmp/parseurl_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/rtmp/parseurl_test.go b/protocol/rtmp/parseurl_test.go index f6501901..90bfd099 100644 --- a/protocol/rtmp/parseurl_test.go +++ b/protocol/rtmp/parseurl_test.go @@ -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",