mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-26 05:31: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) {
|
options.SubscribeAsString(subscriber, [&](const string& key, string value) {
|
||||||
if (expected_key == key) {
|
if (expected_key == key) {
|
||||||
++asstring_events;
|
++asstring_events;
|
||||||
EXPECT_EQ(value, PropertyHelper::ConvertPropertyToString(Property(value)));
|
EXPECT_EQ(value, PropertyHelper::ConvertPropertyToString(Property(expected_value)));
|
||||||
}
|
}
|
||||||
++total_events;
|
++total_events;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user