From a3ab13cbf58bd6ed3aac484fcecb51f6f4c4deb9 Mon Sep 17 00:00:00 2001 From: Jake Daynes Date: Fri, 13 Mar 2026 02:20:01 -0700 Subject: [PATCH] fix: update test runner to include Secure flag --- internal/attack/rtsp_url_test.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/attack/rtsp_url_test.go b/internal/attack/rtsp_url_test.go index fe0167e..d1a746f 100644 --- a/internal/attack/rtsp_url_test.go +++ b/internal/attack/rtsp_url_test.go @@ -76,10 +76,10 @@ func TestBuildRTSPURL(t *testing.T) { wantURL: "rtsp://user:@192.168.0.10:554/stream", }, { - name: "secure rtsps scheme without credentials", - route: "stream", - secure: true, - wantURL: "rtsps://192.168.0.10:554/stream", + name: "secure rtsps scheme without credentials", + route: "stream", + secure: true, + wantURL: "rtsps://192.168.0.10:554/stream", }, { name: "secure rtsps scheme with credentials", @@ -93,6 +93,8 @@ func TestBuildRTSPURL(t *testing.T) { for _, test := range tests { t.Run(test.name, func(t *testing.T) { + s := stream + s.Secure = test.secure _, gotURL, err := buildRTSPURL(stream, test.route, test.username, test.password) require.NoError(t, err) require.Equal(t, test.wantURL, gotURL)