fix(test): read the bulk-updated property from the plugin services

- the Accessors test read the value back from its own local property
  map, which it had just written, so the check could not fail
- check the result of UpdateProperties() and read the value back from
  the plugin services

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-03 14:04:47 +00:00
committed by Dennis Klein
parent df403279a5
commit 65c02d182b

View File

@@ -136,10 +136,9 @@ TEST_F(PluginServices, Accessors)
ASSERT_EQ(boost::any_cast<int>(properties.at("newcustom")), 12345);
properties.at("custom3") = 11111;
mServices.UpdateProperties(properties);
// bulk update should update values of all properties, but only if all of them exist
ASSERT_EQ(boost::any_cast<int>(properties.at("custom3")), 11111);
ASSERT_EQ(mServices.UpdateProperties(properties), true);
ASSERT_EQ(mServices.GetProperty<int>("custom3"), 11111);
properties.at("custom3") = 22222;
properties.emplace("custom4", 17);