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:
Claude
2026-11-03 14:04:41 +00:00
committed by Dennis Klein
parent 6aaa8db2bd
commit df403279a5

View File

@@ -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;
});