This is an automated email from the ASF dual-hosted git repository. exceptionfactory pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/nifi.git
commit 4527e3fe0fc8e02f7a579dc9ab7d2e93a356b640 Author: Joseph Witt <[email protected]> AuthorDate: Wed Sep 20 10:39:34 2023 -0700 NIFI-12091 Workaround for TestListenTCPRecord to be corrected in NIFI-12098 This closes #7765 Signed-off-by: David Handermann <[email protected]> --- .../org/apache/nifi/processors/standard/TestListenTCPRecord.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 500501e5bf..a28618d0b7 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 @@ -222,7 +222,12 @@ public class TestListenTCPRecord { final OutputStream outputStream = socket.getOutputStream(); outputStream.write(DATA.getBytes(StandardCharsets.UTF_8)); outputStream.flush(); - } catch (final IOException e) { + /** + * Once NIFI-12098 is resolved this sleep can be removed. Without the sleep + * on some systems (Windows builds often) the build can fail and lockup indefinitely. + */ + Thread.sleep(3000); + } catch (final IOException | InterruptedException e) { LOGGER.error("Failed Sending Records to Port [{}]", port, e); } });
