From 7a56208f2fc91f65faa372a077f178865b212dc7 Mon Sep 17 00:00:00 2001 From: winlin Date: Wed, 4 Jan 2023 19:33:48 +0800 Subject: [PATCH] Test: Use long duration for HLS balckbox test. --- .github/workflows/test.yml | 2 +- trunk/3rdparty/srs-bench/blackbox/hevc_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dae674020..d8cff8e87 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -199,7 +199,7 @@ jobs: docker run --rm -w /srs/trunk/3rdparty/srs-bench srs:test \ ./objs/srs_blackbox_test -test.v -test.run '^TestFast' -test.parallel 64 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 coverage: diff --git a/trunk/3rdparty/srs-bench/blackbox/hevc_test.go b/trunk/3rdparty/srs-bench/blackbox/hevc_test.go index 8e66526ae..e313d19ef 100644 --- a/trunk/3rdparty/srs-bench/blackbox/hevc_test.go +++ b/trunk/3rdparty/srs-bench/blackbox/hevc_test.go @@ -379,7 +379,7 @@ func TestSlow_RtmpPublish_HlsPlay_HEVC_Basic(t *testing.T) { ffprobe := NewFFprobe(func(v *ffprobeClient) { 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.duration, v.timeout = duration, time.Duration(*srsFFprobeTimeout)*time.Millisecond * 2 + v.duration, v.timeout = duration, time.Duration(*srsFFprobeTimeout)*time.Millisecond*2 }) wg.Add(1) go func() {