From 29703d42f0d591f08eee33ff66fc5564a70606b1 Mon Sep 17 00:00:00 2001 From: Philipp Hancke Date: Mon, 5 Aug 2024 21:08:47 -0700 Subject: [PATCH] add unit test for mapping packets with lower sequence number than the first mapped packet see #1437 and #1438. Works but why not have a test --- worker/test/src/RTC/TestSeqManager.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/worker/test/src/RTC/TestSeqManager.cpp b/worker/test/src/RTC/TestSeqManager.cpp index 1b90581128..280857278c 100644 --- a/worker/test/src/RTC/TestSeqManager.cpp +++ b/worker/test/src/RTC/TestSeqManager.cpp @@ -1400,4 +1400,19 @@ SCENARIO("SeqManager", "[rtc][SeqMananger]") SeqManager seqManager(/*initialOutput*/ 1000); validate(seqManager, inputs); } + + SECTION("map packets prior to first mapped packet") + { + // clang-format off + std::vector> inputs = + { + { 4, 4, false, false }, + { 3, 3, false, false }, + { 65535, 65535, false, false }, + }; + // clang-format on + + SeqManager seqManager; + validate(seqManager, inputs); + } }