renaming mpegts prober

This commit is contained in:
Leandro Moreira
2024-02-16 16:17:32 -03:00
parent 48deaf7ee6
commit c510b07a65

View File

@@ -14,7 +14,7 @@ import (
var p []probers.DonutProber
func setupController(t *testing.T, req *entities.RequestParams) probers.DonutProber {
func selectProberFor(t *testing.T, req *entities.RequestParams) probers.DonutProber {
if p == nil {
fxtest.New(t,
web.Dependencies(false),
@@ -47,9 +47,9 @@ func TestSrtMpegTs_StreamInfo(t *testing.T) {
SRTStreamID: "test_id",
}
controller := setupController(t, req)
prober := selectProberFor(t, req)
streamInfo, err := controller.StreamInfo(req)
streamInfo, err := prober.StreamInfo(req)
assert.Nil(t, err)
assert.NotNil(t, streamInfo)
@@ -69,9 +69,9 @@ func TestSrtMpegTs_StreamInfo_265(t *testing.T) {
SRTStreamID: "test_id",
}
controller := setupController(t, req)
prober := selectProberFor(t, req)
streamInfo, err := controller.StreamInfo(req)
streamInfo, err := prober.StreamInfo(req)
assert.Nil(t, err)
assert.NotNil(t, streamInfo)