1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-15 04:42:04 +00:00

Test: Use long duration for HLS balckbox test.

This commit is contained in:
winlin 2023-01-04 19:33:48 +08:00
parent b104826a96
commit 7a56208f2f
2 changed files with 2 additions and 2 deletions

View file

@ -199,7 +199,7 @@ jobs:
docker run --rm -w /srs/trunk/3rdparty/srs-bench srs:test \ docker run --rm -w /srs/trunk/3rdparty/srs-bench srs:test \
./objs/srs_blackbox_test -test.v -test.run '^TestFast' -test.parallel 64 ./objs/srs_blackbox_test -test.v -test.run '^TestFast' -test.parallel 64
docker run --rm -w /srs/trunk/3rdparty/srs-bench srs:test \ docker run --rm -w /srs/trunk/3rdparty/srs-bench srs:test \
./objs/srs_blackbox_test -test.v -test.run '^TestSlow' -test.parallel 2 ./objs/srs_blackbox_test -test.v -test.run '^TestSlow' -test.parallel 4
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
coverage: coverage:

View file

@ -379,7 +379,7 @@ func TestSlow_RtmpPublish_HlsPlay_HEVC_Basic(t *testing.T) {
ffprobe := NewFFprobe(func(v *ffprobeClient) { ffprobe := NewFFprobe(func(v *ffprobeClient) {
v.dvrFile = path.Join(svr.WorkDir(), "objs", fmt.Sprintf("srs-ffprobe-%v.ts", streamID)) v.dvrFile = path.Join(svr.WorkDir(), "objs", fmt.Sprintf("srs-ffprobe-%v.ts", streamID))
v.streamURL = fmt.Sprintf("http://localhost:%v/live/%v.m3u8", svr.HTTPPort(), streamID) v.streamURL = fmt.Sprintf("http://localhost:%v/live/%v.m3u8", svr.HTTPPort(), streamID)
v.duration, v.timeout = duration, time.Duration(*srsFFprobeTimeout)*time.Millisecond * 2 v.duration, v.timeout = duration, time.Duration(*srsFFprobeTimeout)*time.Millisecond*2
}) })
wg.Add(1) wg.Add(1)
go func() { go func() {