Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-994

surefire execution is not hardcoded to locale and timezone

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • None
    • None

    Description

      problem
      when running tests with mvn (surefire plugin) the locale and the timezone are not specified, thus they are taken from the system. this makes the test execution brittle. as state of now the tests only run in certain timezones, if run in CST (china standard time) for example the following test fails:

      RollingCalendarTest.testVaryingNumberOfDailyPeriods:92 p=20 expected:<1224950400000> but was:<1225036800000>

      solution
      specify the locale and timezone in the surefire configuration of maven like this:

      <argLine>-Duser.country=EN -Duser.language=en -Duser.timezone=CEST</argLine>

      Attachments

        Activity

          People

            tony19 Tony Trinh
            sierragolf Sebastian Gröbler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: