Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-13933

CalendarHelpersTest unit test fails in negative offset timezone e.g. US/Atlanta

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 5.0.N
    • Fix Version/s: 5.0.2
    • Component/s: ZZ_Archive
    • Labels:
      None

      Description

      Checkout + mvn clean install should always be working, to ensure the quality of the build.

      Currently build fails for a timezone related issue:

      Running org.alfresco.AllUnitTestsSuite
      Tests run: 417, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 44.311 sec <<< FAILURE! - in org.alfresco.AllUnitTestsSuite
      simpleTimeZoneNorthern(org.alfresco.repo.calendar.CalendarHelpersTest) Time elapsed: 0.006 sec <<< FAILURE!
      java.lang.AssertionError: expected:<3600000> but was:<0>
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:743)
      at org.junit.Assert.assertEquals(Assert.java:118)
      at org.junit.Assert.assertEquals(Assert.java:555)
      at org.junit.Assert.assertEquals(Assert.java:542)
      at org.alfresco.repo.calendar.CalendarHelpersTest.simpleTimeZoneNorthern(CalendarHelpersTest.java:2101)

      Is this timezone dependent (so doesn't fail in the UK)? Or maybe it's because I am actually running Java7 (assume should be java8?) Do we see this in the build server?

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  gcolumbro Gabriele Columbro [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 2 days, 6 hours, 15 minutes
                    2d 6h 15m

                      Structure Helper Panel