aminadinari19 commented on a change in pull request #1141:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1141#discussion_r677187943
##########
File path: extensions/standard-processors/tests/unit/HashContentTest.cpp
##########
@@ -149,17 +149,31 @@ TEST_CASE("TestingFailOnEmptyProperty",
"[HashContentPropertiesCheck]") {
core::Relationship("success", "description"), true);
plan->setProperty(md5processor,
org::apache::nifi::minifi::processors::HashContent::HashAttribute.getName(),
MD5_ATTR);
plan->setProperty(md5processor,
org::apache::nifi::minifi::processors::HashContent::HashAlgorithm.getName(),
"MD5");
- plan->setProperty(md5processor,
org::apache::nifi::minifi::processors::HashContent::FailOnEmpty.getName(),
"true");
+ std::set<core::Relationship> relationships;
+ relationships.insert(core::Relationship("success", "description"));
+ relationships.insert(core::Relationship("failure", "description"));
+ md5processor->setAutoTerminatedRelationships(relationships);
Review comment:
The failure relationship had to be auto terminated or else the test
would end abruptly if the flowfile was routed to failure. I also think the
initializer is nicer. Changing it now :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]