1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 09:12:19 +00:00

Kill FFMPEG at the end of the forwarding test

This commit is contained in:
Yohann D'ANELLO 2020-10-09 22:31:19 +02:00
parent 811cec5626
commit 473e80c5eb

View File

@ -77,5 +77,15 @@ func TestForwardStream(t *testing.T) {
time.Sleep(5 * time.Second) // Delay is in nanoseconds, here 5s
err = ffmpeg.Process.Kill()
if err != nil {
t.Fatalf("Error while killing ffmpeg: already died?")
}
err = forwardedFfmpeg.Process.Kill()
if err != nil {
t.Fatalf("Error while killing ffmpeg: already died?")
}
// TODO Kill SRT server
}