This reverts commit 500d18b6c6.
This commit is contained in:
Alessandro Ros
2025-06-03 20:27:53 +02:00
committed by GitHub
parent c055c13442
commit c21c969a8c
10 changed files with 79 additions and 287 deletions

View File

@@ -83,6 +83,9 @@ func TestSource(t *testing.T) {
err = w.WriteH264(2*time.Second, 2*time.Second, [][]byte{{5, 2, 3, 4}})
require.NoError(t, err)
err = w.WriteH264(3*time.Second, 3*time.Second, [][]byte{{5, 2, 3, 4}})
require.NoError(t, err)
break
}
}()
@@ -101,16 +104,6 @@ func TestSource(t *testing.T) {
source += "localhost/teststream"
n := 0
timeNow = func() time.Time {
d := time.Date(2009, 5, 20, 22, 15, 25, 427000, time.Local).Add(time.Duration(n) * 2 * time.Second)
n++
return d
}
defer func() {
timeNow = time.Now
}()
te := test.NewSourceTester(
func(p defs.StaticSourceParent) defs.StaticSource {
return &Source{