mirror of
https://github.com/flavioribeiro/donut.git
synced 2025-09-26 19:11:11 +08:00
renaming mpegts prober
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user