Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2794

YamlLayoutTest.testAdditionalFields test is sensitive to environment changes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.13.2
    • None
    • None

    Description

      The test in question checks a string serialization of an yaml-serialized event using a contains operation, but since the checked string is dependent on the environment and the yaml serialization may opt to break long lines into multiple lines, causing the test to fail in some environments but work in other. It is currently failing in travis on the release-2.x branch.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Karlberg Johan Karlberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m