Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3989

AuditLogBootingSyslogTest should make assertion on lower and upper bound for queue size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 6.0.0.Alpha5
    • 6.0.0.Alpha4
    • Test Suite
    • None
    • Hide
      wildfly-core]$ mvn test -Dts.manualmode -pl testsuite/manualmode -Dtest=AuditLogBootingSyslogTest
      
      Show
      wildfly-core]$ mvn test -Dts.manualmode -pl testsuite/manualmode -Dtest=AuditLogBootingSyslogTest

    Description

      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:

      * 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.
      

      The expected queue size was changed from 18 to 17 by https://github.com/wildfly/wildfly-core/pull/3379/files#diff-2308836c2a6787cec1e24b179dc3f567L135

      Attachments

        Issue Links

          Activity

            People

              vobratil1 Vilém Obrátil
              vobratil1 Vilém Obrátil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: