From: Thomas Markwalder Date: Tue, 23 Apr 2024 17:02:52 +0000 (-0400) Subject: [#3314] Review comment X-Git-Tag: Kea-2.5.8~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e8621b505c2a012cd040a3387abc9f915c60258;p=thirdparty%2Fkea.git [#3314] Review comment Fixed UT test. modified: callout_handle_unittest.cc --- diff --git a/src/lib/hooks/tests/callout_handle_unittest.cc b/src/lib/hooks/tests/callout_handle_unittest.cc index b34c41760e..4a6d38c4dc 100644 --- a/src/lib/hooks/tests/callout_handle_unittest.cc +++ b/src/lib/hooks/tests/callout_handle_unittest.cc @@ -402,7 +402,8 @@ TEST_F(CalloutHandleTest, getOptionalContext) { // Should find three. handle->setContext("three", three); - EXPECT_TRUE(handle->getOptionalContext("two", value)); + EXPECT_TRUE(handle->getOptionalContext("three", value)); + EXPECT_EQ(three, value); } // Further tests of the "skip" flag and tests of getting the name of the