From 9fc0abf52ef3834ac12302491007284be4e46835 Mon Sep 17 00:00:00 2001 From: Thom Shutt Date: Thu, 31 Mar 2022 11:04:29 +0100 Subject: [PATCH] segmenter: Remove invalid netcat flag in test (#316) --- segmenter/video_segmenter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/segmenter/video_segmenter_test.go b/segmenter/video_segmenter_test.go index dac5b3e834..3835e948b4 100644 --- a/segmenter/video_segmenter_test.go +++ b/segmenter/video_segmenter_test.go @@ -445,7 +445,7 @@ func TestServerDisconnect(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() - cmd := "dd if=/dev/urandom count=1 ibs=2000 | nc -Nl " + port + cmd := "dd if=/dev/urandom count=1 ibs=2000 | nc -l " + port go exec.CommandContext(ctx, "bash", "-c", cmd).Output() err := RunRTMPToHLS(vs, ctx)