From fb6798026eb6607bde4d47ab3d52893923b53d63 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Sun, 8 Dec 2024 23:04:56 +0100 Subject: [PATCH] Update unit tests --- cpp/test/command_executor_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/test/command_executor_test.cpp b/cpp/test/command_executor_test.cpp index 63870b6b..c31b57c5 100644 --- a/cpp/test/command_executor_test.cpp +++ b/cpp/test/command_executor_test.cpp @@ -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 &ids = executor->GetReservedIds(); + const unordered_set ids = executor->GetReservedIds(); EXPECT_EQ(2U, ids.size()); EXPECT_TRUE(ids.contains(2)); EXPECT_TRUE(ids.contains(3)); @@ -373,7 +373,7 @@ TEST(CommandExecutorTest, SetReservedIds) error = executor->SetReservedIds("7,1,2,3,5"); EXPECT_TRUE(error.empty()); - const unordered_set &reserved_ids = executor->GetReservedIds(); + const unordered_set reserved_ids = executor->GetReservedIds(); EXPECT_EQ(5U, reserved_ids.size()); EXPECT_TRUE(reserved_ids.contains(1)); EXPECT_TRUE(reserved_ids.contains(2));