From 016834efaaeb19abb593816d2683f8eb3f358204 Mon Sep 17 00:00:00 2001 From: exceptionfactory Date: Tue, 22 Aug 2023 09:12:34 -0500 Subject: [PATCH] NIFI-11976 Removed error log check in TestListenTCPRecord Signed-off-by: Matt Burgess This closes #7635 --- .../nifi/processors/standard/TestListenTCPRecord.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListenTCPRecord.java b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListenTCPRecord.java index be38dc32e1..500501e5bf 100644 --- a/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListenTCPRecord.java +++ b/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestListenTCPRecord.java @@ -26,7 +26,6 @@ import org.apache.nifi.serialization.RecordSetWriterFactory; import org.apache.nifi.serialization.record.MockRecordWriter; import org.apache.nifi.ssl.RestrictedSSLContextService; import org.apache.nifi.ssl.SSLContextService; -import org.apache.nifi.util.LogMessage; import org.apache.nifi.util.MockFlowFile; import org.apache.nifi.util.TestRunner; import org.apache.nifi.util.TestRunners; @@ -45,11 +44,9 @@ import java.io.OutputStream; import java.net.Socket; import java.nio.charset.StandardCharsets; import java.util.List; -import java.util.Optional; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; public class TestListenTCPRecord { @@ -236,9 +233,6 @@ public class TestListenTCPRecord { while (getSuccessCount() < expectedTransferred) { runner.run(1, false, false); iterations++; - - final Optional firstErrorMessage = runner.getLogger().getErrorMessages().stream().findFirst(); - assertNull(firstErrorMessage.orElse(null)); } LOGGER.info("Completed after iterations [{}]", iterations); }