mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +00:00
fix(test): compare the string event value with the expected value
- the SubscribeAsString() callback compared the received value with its own string conversion, so the check could not fail - compare it with the string conversion of the value that the test set Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,7 @@ auto subscribe_and_set(ProgOptions& options, const string& expected_key, T expec
|
||||
options.SubscribeAsString(subscriber, [&](const string& key, string value) {
|
||||
if (expected_key == key) {
|
||||
++asstring_events;
|
||||
EXPECT_EQ(value, PropertyHelper::ConvertPropertyToString(Property(value)));
|
||||
EXPECT_EQ(value, PropertyHelper::ConvertPropertyToString(Property(expected_value)));
|
||||
}
|
||||
++total_events;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user