Skip to content

Commit

Permalink
fix RTSP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroSG94 committed Oct 28, 2024
1 parent a8a7541 commit c8aca27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Empty file added rtsp/.attach_pid175967
Empty file.
12 changes: 6 additions & 6 deletions rtsp/src/test/java/com/pedro/rtsp/rtsp/CommandParserTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class CommandParserTest {

@Test
fun `GIVEN a SETUP command with text from server WHEN parse using udp protocol THEN change server ports`() {
val audioClientPorts = intArrayOf(5000, 5001)
val videoClientPorts = intArrayOf(5002, 5003)
val audioServerPorts = intArrayOf(5004, 5005)
val videoServerPorts = intArrayOf(5006, 5007)
val audioClientPorts = arrayOf<Int?>(5000, 5001)
val videoClientPorts = arrayOf<Int?>(5002, 5003)
val audioServerPorts = arrayOf<Int?>(5004, 5005)
val videoServerPorts = arrayOf<Int?>(5006, 5007)

val expectedAudioServerPorts = intArrayOf(5014, 5015)
val expectedVideoServerPorts = intArrayOf(5016, 5017)
val expectedAudioServerPorts = arrayOf<Int?>(5014, 5015)
val expectedVideoServerPorts = arrayOf<Int?>(5016, 5017)
val serverCommandAudio = "RTSP/1.0 200 OK\r\n" +
"Date: Fri, 15 Apr 2022 16:16:30 UTC\r\n" +
"Expires: Fri, 15 Apr 2022 16:16:30 UTC\r\n" +
Expand Down

0 comments on commit c8aca27

Please sign in to comment.