Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyslogAppenderCustomLayoutTest is unreliable #3006

Open
garydgregory opened this issue Sep 23, 2024 · 1 comment
Open

SyslogAppenderCustomLayoutTest is unreliable #3006

garydgregory opened this issue Sep 23, 2024 · 1 comment
Labels
tests Pull requests or issues related to tests

Comments

@garydgregory
Copy link
Member

Description

SyslogAppenderCustomLayoutTest is unreliable

[ERROR] Failures:
[ERROR]   SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testTCPAppender:56->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:74->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:112 The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
[ERROR]   SyslogAppenderCustomLayoutTest>SyslogAppenderTest.testUDPAppender:79->SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage:74->SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages:112 The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>

Configuration

Version: 2.x at 01125b1

Operating system:
Microsoft Windows [Version 10.0.19045.4780

JDK:
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: C:\java\apache-maven-3.9.9
Java version: 17.0.12, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-17.0.12.7-hotspot
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Logs

[ERROR] Tests run: 5, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 3.549 s <<< FAILURE! -- in org.apache.logging.log4j.core.appender.SyslogAppenderCustomLayoutTest
[INFO] Running org.apache.logging.log4j.core.appender.SmtpAppenderAsyncTest
10:07:11.688 main ERROR The pattern, literal, and isEventTimestamp attributes are mutually exclusive.
[ERROR] org.apache.logging.log4j.core.appender.SyslogAppenderCustomLayoutTest.testTCPAppender -- Time elapsed: 0.225 s <<< FAILURE!
java.lang.AssertionError: The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
        at org.apache.logging.log4j.core.appender.SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages(SyslogAppenderTestBase.java:112)
        at org.apache.logging.log4j.core.appender.SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage(SyslogAppenderTestBase.java:74)
        at org.apache.logging.log4j.core.appender.SyslogAppenderTest.testTCPAppender(SyslogAppenderTest.java:56)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

[ERROR] org.apache.logging.log4j.core.appender.SyslogAppenderCustomLayoutTest.testUDPAppender -- Time elapsed: 0.209 s <<< FAILURE!
java.lang.AssertionError: The number of received messages should be equal with the number of sent messages expected:<1> but was:<0>
        at org.apache.logging.log4j.core.appender.SyslogAppenderTestBase.checkTheNumberOfSentAndReceivedMessages(SyslogAppenderTestBase.java:112)
        at org.apache.logging.log4j.core.appender.SyslogAppenderTestBase.sendAndCheckLegacyBsdMessage(SyslogAppenderTestBase.java:74)
        at org.apache.logging.log4j.core.appender.SyslogAppenderTest.testUDPAppender(SyslogAppenderTest.java:79)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Reproduction

mvn clean install
@vy vy added the tests Pull requests or issues related to tests label Sep 23, 2024
@garydgregory
Copy link
Member Author

Just FYI, still an issue with the latest from 2.x:

git log -1
commit b55c4d3fa2489cf91d6569aac57b05ae2c9d4b06 (HEAD -> 2.x, origin/2.x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Pull requests or issues related to tests
Projects
None yet
Development

No branches or pull requests

2 participants