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

Forwarding test must serve then the forwarding package in a subroutine

This commit is contained in:
Yohann D'ANELLO 2020-10-01 19:34:40 +02:00
parent d7e104261f
commit 650040ef10

View File

@ -56,7 +56,7 @@ func TestForwardStream(t *testing.T) {
forwardingChannel = make(chan srt.Packet) forwardingChannel = make(chan srt.Packet)
// Register forwarding stream list // Register forwarding stream list
Serve(forwardingList, forwardingChannel) go Serve(forwardingList, forwardingChannel)
// Serve HTTP Server // Serve HTTP Server
go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel) go srt.Serve(&srt.Options{ListenAddress: ":9712", MaxClients: 2}, forwardingChannel)