greyp9 commented on code in PR #5976:
URL: https://github.com/apache/nifi/pull/5976#discussion_r853263332


##########
nifi-nar-bundles/nifi-snmp-bundle/nifi-snmp-processors/src/test/java/org/apache/nifi/snmp/factory/core/V1V2cSNMPFactoryTest.java:
##########
@@ -62,7 +65,7 @@ public void testFactoryCreatesSnmpManager() {
         final Snmp snmpManager = 
snmpFactory.createSnmpManagerInstance(snmpConfiguration);
 
         final String address = 
snmpManager.getMessageDispatcher().getTransportMappings().iterator().next().getListenAddress().toString();
-        assertEquals("0.0.0.0" + "/" + managerPort, address);
+        assertTrue(Pattern.compile("0.+?0/" + 
managerPort).matcher(address).matches());

Review Comment:
   ```
   Error:  Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
0.026 s <<< FAILURE! - in org.apache.nifi.snmp.factory.core.V1V2cSNMPFactoryTest
   Error:  
org.apache.nifi.snmp.factory.core.V1V2cSNMPFactoryTest.testFactoryCreatesSnmpManager
  Time elapsed: 0.004 s  <<< FAILURE!
   org.junit.ComparisonFailure: expected:<0[.0.0.]0/57867> but 
was:<0[:0:0:0:0:0:0:]0/57867>
        at 
org.apache.nifi.snmp.factory.core.V1V2cSNMPFactoryTest.testFactoryCreatesSnmpManager(V1V2cSNMPFactoryTest.java:65)
   ```
   https://github.com/greyp9/nifi/runs/5843639160?check_suite_focus=true
   



-- 
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]

Reply via email to