From 7096c16afb7a89a4c6e1c6380e7679a79dedb7a0 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 8 May 2021 19:08:09 +0200 Subject: [PATCH] fix tests --- main_clientrtsp_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_clientrtsp_test.go b/main_clientrtsp_test.go index 83feaae7..334500fb 100644 --- a/main_clientrtsp_test.go +++ b/main_clientrtsp_test.go @@ -787,7 +787,7 @@ func TestClientRTSPRunOnDemand(t *testing.T) { doneFile := filepath.Join(os.TempDir(), "ondemand_done") onDemandFile, err := writeTempFile([]byte(fmt.Sprintf(`#!/bin/sh trap 'touch %s; [ -z "$(jobs -p)" ] || kill $(jobs -p)' INT -(ffmpeg -hide_banner -loglevel error -re -i testimages/ffmpeg/emptyvideo.mkv -c copy -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH; sleep 86400) & +ffmpeg -hide_banner -loglevel error -re -i testimages/ffmpeg/emptyvideo.mkv -c copy -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH & wait `, doneFile))) require.NoError(t, err)