mirror of
https://github.com/datarhei/core.git
synced 2025-10-06 08:27:08 +08:00
Fix parser tests
This commit is contained in:
@@ -184,6 +184,7 @@ func TestParserLogHistory(t *testing.T) {
|
|||||||
|
|
||||||
d, _ := time.ParseDuration("3m58s440ms")
|
d, _ := time.ParseDuration("3m58s440ms")
|
||||||
require.Equal(t, Progress{
|
require.Equal(t, Progress{
|
||||||
|
Initialized: true,
|
||||||
Frame: 5968,
|
Frame: 5968,
|
||||||
FPS: 0, // is calculated with averager
|
FPS: 0, // is calculated with averager
|
||||||
Quantizer: 19.4,
|
Quantizer: 19.4,
|
||||||
@@ -250,6 +251,7 @@ func TestParserLogMinimalHistoryLength(t *testing.T) {
|
|||||||
|
|
||||||
d, _ := time.ParseDuration("3m58s440ms")
|
d, _ := time.ParseDuration("3m58s440ms")
|
||||||
require.Equal(t, Progress{
|
require.Equal(t, Progress{
|
||||||
|
Initialized: true,
|
||||||
Frame: 5968,
|
Frame: 5968,
|
||||||
FPS: 0, // is calculated with averager
|
FPS: 0, // is calculated with averager
|
||||||
Quantizer: 19.4,
|
Quantizer: 19.4,
|
||||||
@@ -267,6 +269,7 @@ func TestParserLogMinimalHistoryLength(t *testing.T) {
|
|||||||
|
|
||||||
d, _ := time.ParseDuration("3m58s440ms")
|
d, _ := time.ParseDuration("3m58s440ms")
|
||||||
require.Equal(t, Progress{
|
require.Equal(t, Progress{
|
||||||
|
Initialized: true,
|
||||||
Frame: 5968,
|
Frame: 5968,
|
||||||
FPS: 0, // is calculated with averager
|
FPS: 0, // is calculated with averager
|
||||||
Quantizer: 19.4,
|
Quantizer: 19.4,
|
||||||
@@ -810,6 +813,7 @@ func TestParserProgressPlayout(t *testing.T) {
|
|||||||
progress := parser.Progress()
|
progress := parser.Progress()
|
||||||
|
|
||||||
require.Equal(t, Progress{
|
require.Equal(t, Progress{
|
||||||
|
Initialized: true,
|
||||||
Input: []ProgressIO{
|
Input: []ProgressIO{
|
||||||
{
|
{
|
||||||
Address: "playout:https://cdn.livespotting.com/vpu/e9slfpe3/z60wzayk.m3u8",
|
Address: "playout:https://cdn.livespotting.com/vpu/e9slfpe3/z60wzayk.m3u8",
|
||||||
|
Reference in New Issue
Block a user