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{}