Skip to content

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Nov 2, 2024
1 parent cbd783f commit 380d54e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion unittest/syncd/TestCommandLineOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ TEST(CommandLineOptionsParser, parseCommandLine)
char arg1[] = "test";
char arg2[] = "-w";
char arg3[] = "1000";
std::vector<char *> args = {arg1, arg2, arg3};
char arg4[] = "-B";
char arg5[] = "WATERMARK";
std::vector<char *> args = {arg1, arg2, arg3, arg4, arg5};

auto opt = syncd::CommandLineOptionsParser::parseCommandLine((int)args.size(), args.data());
EXPECT_EQ(opt->m_watchdogWarnTimeSpan, 1000);
EXPECT_EQ(opt->m_supportingBulkCounterGroups, "WATERMARK");
}
2 changes: 1 addition & 1 deletion unittest/syncd/TestFlexCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ void testAddRemovePlugin(const std::string& pluginFieldName)
{
SWSS_LOG_ENTER();

FlexCounter fc("test", sai, "COUNTERS_DB");
FlexCounter fc("test", sai, "COUNTERS_DB", true);

std::vector<swss::FieldValueTuple> values;
values.emplace_back(pluginFieldName, "dummy_sha_strings");
Expand Down

0 comments on commit 380d54e

Please sign in to comment.