David Handermann created NIFI-11976:
---------------------------------------

             Summary: Intermittent Test Failures in TestListenTCPRecord on 
Windows
                 Key: NIFI-11976
                 URL: https://issues.apache.org/jira/browse/NIFI-11976
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.23.1
            Reporter: David Handermann
            Assignee: David Handermann


The {{TestListenTCPRecord}} class fails intermittently on Windows builds due to 
checking for empty error log messages.

The loop check for success should ignore log messages and proceed until 
encountering other failures or timeouts.

{noformat}
Error:  
org.apache.nifi.processors.standard.TestListenTCPRecord.testRunClientAuthRequired
 -- Time elapsed: 0.095 s <<< FAILURE!
org.opentest4j.AssertionFailedError: expected: <null> but was: 
<[ListenTCPRecord[id=e7524a6c-66ba-4132-88fc-7468a90724e6]] Error processing 
records: An established connection was aborted by the software in your host 
machine>
        at 
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
        at 
org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
        at org.junit.jupiter.api.AssertNull.failNotNull(AssertNull.java:50)
        at org.junit.jupiter.api.AssertNull.assertNull(AssertNull.java:35)
        at org.junit.jupiter.api.AssertNull.assertNull(AssertNull.java:30)
        at org.junit.jupiter.api.Assertions.assertNull(Assertions.java:275)
        at 
org.apache.nifi.processors.standard.TestListenTCPRecord.run(TestListenTCPRecord.java:241)
        at 
org.apache.nifi.processors.standard.TestListenTCPRecord.testRunClientAuthRequired(TestListenTCPRecord.java:170)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to