mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2024-12-22 18:32:19 +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:
parent
efa44488c0
commit
c0689ae063
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user