Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-8728

TestDatafields in cert-cvc fails if clock is 00:00-00:59

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.4.0
    • Component/s: None
    • Labels:
    • Sprint:
      EJBCA Team Bob - 2019 w48

      Description

      The TestDatafields test fails if the system clock is between 00:00 and 00:59

      Running org.ejbca.cvc.TestDatafields
      Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.054 sec <<< FAILURE!
      testDateField(org.ejbca.cvc.TestDatafields)  Time elapsed: 0.052 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: Byte arrays not equal
              at junit.framework.Assert.fail(Assert.java:47)
              at junit.framework.Assert.assertTrue(Assert.java:20)
              at org.ejbca.cvc.TestDatafields.testDateField(TestDatafields.java:263)
      

      Discovered when I ran the test with faketime. Tested with CET timezone

        Attachments

          Activity

            People

            Assignee:
            samuel Samuel Lidén Borell
            Reporter:
            samuel Samuel Lidén Borell
            Verified by:
            Tomas Gustavsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Time Spent - 15 minutes Remaining Estimate - 1 hour, 45 minutes
                1h 45m
                Logged:
                Time Spent - 15 minutes Remaining Estimate - 1 hour, 45 minutes
                15m