Skip to content

Commit 12dafce

Browse files
committed
fix tests
1 parent a0665ee commit 12dafce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rtsp/src/test/java/com/pedro/rtsp/rtp/RtpStreamSocketTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.pedro.rtsp.rtp
1818

1919
import com.pedro.common.socket.base.SocketType
20+
import com.pedro.common.socket.base.StreamSocket
2021
import com.pedro.common.socket.base.TcpStreamSocket
2122
import com.pedro.common.socket.base.UdpStreamSocket
2223
import com.pedro.rtsp.rtp.sockets.BaseRtpSocket
@@ -48,7 +49,8 @@ class RtpStreamSocketTest {
4849

4950
@Test
5051
fun `GIVEN multiple video or audio rtp frames WHEN update rtcp tcp send THEN send only 1 of video and 1 of audio each 3 seconds`() = runTest {
51-
val senderReportTcp = BaseRtpSocket.getInstance(SocketType.JAVA, Protocol.TCP, "127.0.0.1", 0, 1, 2, 3)
52+
val senderReportTcp = BaseRtpSocket.getInstance(SocketType.JAVA, Protocol.TCP, "127.0.0.1",
53+
StreamSocket.DEFAULT_TIMEOUT, 0, 1, 2, 3)
5254
senderReportTcp.setSocket(tcpSocket)
5355
val fakeFrameVideo = RtpFrame(byteArrayOf(0x00, 0x00, 0x00), 0, 3, RtpConstants.trackVideo)
5456
val fakeFrameAudio = RtpFrame(byteArrayOf(0x00, 0x00, 0x00), 0, 3, RtpConstants.trackAudio)

0 commit comments

Comments
 (0)