Browse Source

fix tests

pull/442/head
aler9 5 years ago committed by Alessandro Ros
parent
commit
7096c16afb
  1. 2
      main_clientrtsp_test.go

2
main_clientrtsp_test.go

@ -787,7 +787,7 @@ func TestClientRTSPRunOnDemand(t *testing.T) {
doneFile := filepath.Join(os.TempDir(), "ondemand_done") doneFile := filepath.Join(os.TempDir(), "ondemand_done")
onDemandFile, err := writeTempFile([]byte(fmt.Sprintf(`#!/bin/sh onDemandFile, err := writeTempFile([]byte(fmt.Sprintf(`#!/bin/sh
trap 'touch %s; [ -z "$(jobs -p)" ] || kill $(jobs -p)' INT 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 wait
`, doneFile))) `, doneFile)))
require.NoError(t, err) require.NoError(t, err)

Loading…
Cancel
Save