mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
01.45.2015 71cc55da9ba5f23e25c7f5aea50ed7ff039372e1
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Wednesday, July 1, 2015 12:45 +0200
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Wednesday, July 1, 2015 12:45 +0200
commit71cc55da9ba5f23e25c7f5aea50ed7ff039372e1
tree c843387d4033a327a7f1f3238a87d7baf9451e33 tree | zip | gz
parent 03c3ea2d5526155a50ce5749fa6348dbb4914445 view | diff
ChangelogBackendTestCase.java:
Hopefully say forever goodbye to randomness of searchInChangeNumberModeOnOneSuffixMultipleTimes().

The fixxed assertion error message was:
Failure Cause: java.lang.AssertionError: [In entry dn:
firstchangenumber: 1
lastchangenumber: 8
changelog: cn=changelog
lastExternalChangelogCookie: o=test:00000149a520c3ed04b10000000a;
incorrect value for attr 'lastchangenumber']
Expecting:
<"8">
to be equal to:
<"9">
ignoring case considerations
org.opends.server.backends.ChangelogBackendTestCase.assertAttributeValue(ChangelogBackendTestCase.java:1381)
org.opends.server.backends.ChangelogBackendTestCase.assertChangelogAttributesInRootDSE(ChangelogBackendTestCase.java:857)
org.opends.server.backends.ChangelogBackendTestCase.searchInChangeNumberModeOnOneSuffixMultipleTimes(ChangelogBackendTestCase.java:588)


The error was due to the CSN of the 9nth change coming after the previous CSN, based on time.
How is that possible? I have absolutely no idea since both were created by using which should never go backwards AFAIK.
1 files modified
4 ■■■ changed files
opendj-sdk/opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java 4 ●●● diff | view | raw | blame | history