AuditLogBootingSyslogTest should make assertion on lower and upper
bound for queue size
---------------------------------------------------------------------------------------
Key: WFCORE-3989
URL:
https://issues.jboss.org/browse/WFCORE-3989
Project: WildFly Core
Issue Type: Bug
Components: Test Suite
Affects Versions: 6.0.0.Alpha4
Environment: {noformat}
Apache Maven 3.5.0 (Red Hat 3.5.0-6)
Maven home: /usr/share/maven
Java version: 1.8.0_172
{noformat}
Reporter: Vilém Obrátil
Assignee: Vilém Obrátil
org.jboss.as.test.manualmode.auditlog.AuditLogBootingSyslogTest from deployment-scanner
module of wildfly-core fails due to unexpected queue size length.
The test method waitForExpectedQueueSize expects that there can only be one possible
queue size (17), but in practice the queue can be longer, which occasionally causes the
test to fail.
Test javadoc snippet:
{noformat}
* The event to add the extensions fits into a single syslog event. The composite
operation is chopped to fit into multiple
* events, at the time of writing it is split across 17 events.
*
* Small differences between the expected count and actual count could be caused by
configuration changes changing how many
* events it takes to hold the entire composite operation.
{noformat}
The expected queue size was changed from 18 to 17 by
https://github.com/wildfly/wildfly-core/pull/3379/files#diff-2308836c2a67...