Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-15823

Fix test when run in a different timezone

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.9.3
    • Fix Version/s: 5.9.3
    • Component/s: Target Platforms

      Description

      Tests can fail when run in a different timezone, depending on the slave running tests, see https://qa.nuxeo.org/jenkins/job/addons_nuxeo-target-platforms-5.9.3/org.nuxeo.ecm.platform$nuxeo-target-platforms-io/4/testReport/junit/org.nuxeo.targetplatforms.io.test/TestJsonExporter/testTargetPlatformInstanceExport/ for instance:

      java.lang.AssertionError: releaseDate
      Expected: 1379887200000
           got: 1379894400000
      
      	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:222)
      	at org.skyscreamer.jsonassert.JSONAssert.assertEquals(JSONAssert.java:192)
      	at org.nuxeo.targetplatforms.io.test.TestJsonExporter.checkJsonEquals(TestJsonExporter.java:111)
      	at org.nuxeo.targetplatforms.io.test.TestJsonExporter.testTargetPlatformInstanceExport(TestJsonExporter.java:143)
      

      Tests in error:

          org.nuxeo.targetplatforms.io.test.TestJsonExporter.testTargetPlatformInstanceExport
          org.nuxeo.targetplatforms.io.test.TestJsonExporter.testTargetPlatformExport
          org.nuxeo.targetplatforms.io.test.TestJsonExporter.testTargetPlatformInfoExport
          org.nuxeo.targetplatforms.io.test.TestJsonExporter.testTargetPlatformsExport
          org.nuxeo.targetplatforms.io.test.TestJsonExporter.testTargetPlatformsInfosExport
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                atchertchian Anahide Tchertchian
                Reporter:
                atchertchian Anahide Tchertchian
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: