fix: update rtsp url builder test to use secure flag
This commit is contained in:
@@ -95,7 +95,7 @@ func TestBuildRTSPURL(t *testing.T) {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
s := stream
|
||||
s.Secure = test.secure
|
||||
_, gotURL, err := buildRTSPURL(stream, test.route, test.username, test.password)
|
||||
_, gotURL, err := buildRTSPURL(s, test.route, test.username, test.password)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, test.wantURL, gotURL)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user