mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-26 05:31:36 +00:00
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:
@@ -136,10 +136,9 @@ TEST_F(PluginServices, Accessors)
|
|||||||
ASSERT_EQ(boost::any_cast<int>(properties.at("newcustom")), 12345);
|
ASSERT_EQ(boost::any_cast<int>(properties.at("newcustom")), 12345);
|
||||||
|
|
||||||
properties.at("custom3") = 11111;
|
properties.at("custom3") = 11111;
|
||||||
mServices.UpdateProperties(properties);
|
|
||||||
|
|
||||||
// bulk update should update values of all properties, but only if all of them exist
|
// 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.at("custom3") = 22222;
|
||||||
properties.emplace("custom4", 17);
|
properties.emplace("custom4", 17);
|
||||||
|
|||||||
Reference in New Issue
Block a user