From 650040ef10d476b7be44ecaa874facd6a9732a93 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 1 Oct 2020 19:34:40 +0200 Subject: [PATCH] Forwarding test must serve then the forwarding package in a subroutine --- stream/forwarding/forwarding_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/forwarding/forwarding_test.go b/stream/forwarding/forwarding_test.go index 95d5f7a..9c0229f 100644 --- a/stream/forwarding/forwarding_test.go +++ b/stream/forwarding/forwarding_test.go @@ -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)