Skip to content

Commit

Permalink
record-tester: Increase tolerance for MP4 dur diff (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
victorges authored Jan 17, 2024
1 parent 5806305 commit deaa276
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/app/recordtester/recordtester_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"github.com/livepeer/stream-tester/model"
)

const mp4DurationDiffTolerance = 6 * time.Second

type (
// IRecordTester ...
IRecordTester interface {
Expand Down Expand Up @@ -490,7 +492,7 @@ func (rt *recordTester) checkDownMp4(stream *api.Stream, url string, streamDurat
if durDiff < 0 {
durDiff = -durDiff
}
if durDiff > 2*time.Second {
if durDiff > mp4DurationDiffTolerance {
ers := fmt.Errorf("duration of mp4 differ by %s (got %s, should %s)", durDiff, dur, streamDuration)
glog.Error(ers)
return 300, ers
Expand Down

0 comments on commit deaa276

Please sign in to comment.