Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Dec 8, 2024
1 parent 38d8025 commit fb67980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/test/command_executor_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ TEST(CommandExecutorTest, ProcessCmd)
SetParam(command_reserve_ids1, "ids", "2,3");
CommandContext context_reserve_ids1(command_reserve_ids1);
EXPECT_TRUE(executor->ProcessCmd(context_reserve_ids1));
const unordered_set<int> &ids = executor->GetReservedIds();
const unordered_set<int> ids = executor->GetReservedIds();
EXPECT_EQ(2U, ids.size());
EXPECT_TRUE(ids.contains(2));
EXPECT_TRUE(ids.contains(3));
Expand Down Expand Up @@ -373,7 +373,7 @@ TEST(CommandExecutorTest, SetReservedIds)

error = executor->SetReservedIds("7,1,2,3,5");
EXPECT_TRUE(error.empty());
const unordered_set<int> &reserved_ids = executor->GetReservedIds();
const unordered_set<int> reserved_ids = executor->GetReservedIds();
EXPECT_EQ(5U, reserved_ids.size());
EXPECT_TRUE(reserved_ids.contains(1));
EXPECT_TRUE(reserved_ids.contains(2));
Expand Down

0 comments on commit fb67980

Please sign in to comment.