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

💩 Change port of SRT server if the forwarding test. We should instead kill the server after the test.

This commit is contained in:
Yohann D'ANELLO 2020-10-01 12:07:28 +02:00
parent efa44488c0
commit c0689ae063
2 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,7 @@ func TestForwardStream(t *testing.T) {
New(forwardingList, forwardingChannel)
// Serve HTTP Server
go srt.Serve(&srt.Options{ListenAddress: ":9711", MaxClients: 2}, forwardingChannel)
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel)
ffmpeg := exec.Command("ffmpeg",
"-i", "http://ftp.crans.org/events/Blender%20OpenMovies/big_buck_bunny_480p_stereo.ogg",
@ -96,4 +96,5 @@ func TestForwardStream(t *testing.T) {
}
// TODO Check that the stream ran
// TODO Kill SRT server
}

View File

@ -69,4 +69,5 @@ func TestServeSRT(t *testing.T) {
time.Sleep(5000000000) // Delay is in nanoseconds, here 5s
// TODO Check that the stream ran
// TODO Kill SRT server
}