From f71b7d8967973adec8b296e295f973d1b59e1151 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sun, 10 Apr 2022 17:47:55 +0200 Subject: [PATCH] fix tests --- internal/core/rtsp_source_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/core/rtsp_source_test.go b/internal/core/rtsp_source_test.go index 5809bb4d..41578797 100644 --- a/internal/core/rtsp_source_test.go +++ b/internal/core/rtsp_source_test.go @@ -269,7 +269,7 @@ func TestRTSPSourceDynamicH264Params(t *testing.T) { require.NoError(t, err) stream.WritePacketRTP(0, pkts[0], true) - time.Sleep(1 * time.Second) + time.Sleep(500 * time.Millisecond) func() { c := gortsplib.Client{} @@ -298,6 +298,8 @@ func TestRTSPSourceDynamicH264Params(t *testing.T) { require.NoError(t, err) stream.WritePacketRTP(0, pkts[0], true) + time.Sleep(500 * time.Millisecond) + func() { c := gortsplib.Client{}