Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: EJBCA 7.4.0
-
Component/s: None
-
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