-
-
Notifications
You must be signed in to change notification settings - Fork 389
Closed
Labels
Description
When using RANDOM CommitIdGenerator, Javers logs different Commit IDs than what's being actually persisted in the database.
The issue seems to be the conversion to double in CommitId.valueAsNumber().
Test (quickly written in spock):
def "large commit id test"() {
expect:
new CommitId(8804939115786087745, 0).valueAsNumber() == 8804939115786087745.00
}
results in:
Condition not satisfied:
new CommitId(8804939115786087745, 0).valueAsNumber() == 8804939115786087745.00
| | |
8804939115786087745.0 | false
8804939115786087424.00
Reactions are currently unavailable