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

View File

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