Skip to content

Commit

Permalink
add unit test for mapping packets with lower sequence number than the…
Browse files Browse the repository at this point in the history
… first mapped packet

see #1437 and #1438. Works but why not have a test
  • Loading branch information
fippo committed Aug 6, 2024
1 parent 6b40894 commit 9a7c0c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions worker/test/src/RTC/TestSeqManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1400,4 +1400,19 @@ SCENARIO("SeqManager", "[rtc][SeqMananger]")
SeqManager<uint16_t> seqManager(/*initialOutput*/ 1000);
validate(seqManager, inputs);
}

SECTION("receive packets prior to first mapped packet")
{
// clang-format off
std::vector<TestSeqManagerInput<uint16_t>> inputs =
{
{ 4, 4, false, false },
{ 3, 3, false, false },
{ 65535, 65535, false, false },
};
// clang-format on

SeqManager<uint16_t> seqManager;
validate(seqManager, inputs);
}
}

0 comments on commit 9a7c0c0

Please sign in to comment.