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
1 changed files with 10 additions and 0 deletions

View File

@ -77,5 +77,15 @@ func TestForwardStream(t *testing.T) {
time.Sleep(5 * time.Second) // Delay is in nanoseconds, here 5s 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 // TODO Kill SRT server
} }