test/lib/flat_mutation_reader_assertions: adjust has_monotonic_positions() to v2 spec

The v2 spec allows for non-strictly monotonically increasing positions,
but has_monotonic_positions() tried to enforce it. Relax the check so it
conforms to the spec.
This commit is contained in:
Botond Dénes
2022-02-17 09:42:45 +02:00
parent f292d3d679
commit bba20f5cce

View File

@@ -851,7 +851,7 @@ public:
} else {
BOOST_REQUIRE(inside_partition);
if (previous_fragment) {
if (!less(previous_fragment->position(), mfo->position())) {
if (less(mfo->position(), previous_fragment->position())) {
BOOST_FAIL(format("previous fragment is not strictly before: prev={}, current={}",
mutation_fragment_v2::printer(*_reader.schema(), *previous_fragment), mutation_fragment_v2::printer(*_reader.schema(), *mfo)));
}