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

Fix zone-dependent diff tests failing on some machines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.10-HF01, 8.1
    • Component/s: Diff
    • Tags:
    • Sprint:
      drive-7.10-3

      Description

      Depending on the time zone, the TestDocumentDiff test cases can fail on date assertions, for instance:

      testDocDiff(org.nuxeo.ecm.diff.service.TestDocumentDiff)  Time elapsed: 0.856 sec  <<< FAILURE!
      org.junit.ComparisonFailure: Wrong left value expected:<2011-12-29T1[0]:24:25.00Z> but was:<2011-12-29T1[6]:24:25.00Z>
      

      Let's follow the recommendations from https://doc.nuxeo.com/display/CORG/Writing+tests+working+with+dates

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: