]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3314] Review comment
authorThomas Markwalder <tmark@isc.org>
Tue, 23 Apr 2024 17:02:52 +0000 (13:02 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 24 Apr 2024 11:35:49 +0000 (11:35 +0000)
Fixed UT test.
modified:   callout_handle_unittest.cc

src/lib/hooks/tests/callout_handle_unittest.cc

index b34c41760ed654ba5f00159db429c36b1a166cd6..4a6d38c4dc32e2e6e7fe0c27508ee9b27aad2e8c 100644 (file)
@@ -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