Skip to content

Commit

Permalink
Add named route to test URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
seanavery committed Jan 30, 2025
1 parent fcb0263 commit ccee333
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rtsp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestRTSPCamera(t *testing.T) {
timeoutCtx, timeoutCancel := context.WithTimeout(context.Background(), time.Second*10)
defer timeoutCancel()
config := resource.NewEmptyConfig(camera.Named("foo"), ModelAgnostic)
config.ConvertedAttributes = &Config{Address: "rtsp://" + h.s.RTSPAddress + "/"}
config.ConvertedAttributes = &Config{Address: "rtsp://" + h.s.RTSPAddress + "/stream1"}
rtspCam, err := NewRTSPCamera(timeoutCtx, nil, config, logger)
test.That(t, err, test.ShouldBeNil)
defer func() { test.That(t, rtspCam.Close(context.Background()), test.ShouldBeNil) }()
Expand All @@ -65,7 +65,7 @@ func TestRTSPCamera(t *testing.T) {
timeoutCtx, timeoutCancel := context.WithTimeout(context.Background(), time.Second*10)
defer timeoutCancel()
config := resource.NewEmptyConfig(camera.Named("foo"), ModelAgnostic)
config.ConvertedAttributes = &Config{Address: "rtsp://" + h.s.RTSPAddress + "/"}
config.ConvertedAttributes = &Config{Address: "rtsp://" + h.s.RTSPAddress + "/stream1"}
rtspCam, err := NewRTSPCamera(timeoutCtx, nil, config, logger)
test.That(t, err, test.ShouldBeNil)
defer func() { test.That(t, rtspCam.Close(context.Background()), test.ShouldBeNil) }()
Expand Down Expand Up @@ -110,7 +110,7 @@ func TestRTSPCamera(t *testing.T) {

config := resource.NewEmptyConfig(camera.Named("foo"), ModelAgnostic)
config.ConvertedAttributes = &Config{
Address: "rtsp://" + h.s.RTSPAddress + "/",
Address: "rtsp://" + h.s.RTSPAddress + "/stream1",
RTPPassthrough: tc.rtpPassthrough,
}

Expand Down Expand Up @@ -201,7 +201,7 @@ func TestRTSPCameraPerformance(t *testing.T) {
timeoutCtx, timeoutCancel := context.WithTimeout(context.Background(), time.Second*10)
defer timeoutCancel()
config := resource.NewEmptyConfig(camera.Named("foo"), ModelAgnostic)
config.ConvertedAttributes = &Config{Address: "rtsp://" + h.s.RTSPAddress + "/"}
config.ConvertedAttributes = &Config{Address: "rtsp://" + h.s.RTSPAddress + "/stream1"}
rtspCam, err := NewRTSPCamera(timeoutCtx, nil, config, logger)
test.That(t, err, test.ShouldBeNil)
defer func() { test.That(t, rtspCam.Close(context.Background()), test.ShouldBeNil) }()
Expand Down

0 comments on commit ccee333

Please sign in to comment.