Skip to content

Make autotests deterministic

Document id values are derived from filesystem device and inode ids, which we can't assume to get assigned in direct chronological order.

However, PostingIterator does guarantee ascending order, which affects postingDb and mtimeDb in WriteTransactionTest as well as Transaction::exec() in QueryTest. Both of these were sometimes failing on my system.

This commit makes the tests pass every time.

Merge request reports