From bba20f5cce32df45541d2ecb51cf40fa458f34c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Botond=20D=C3=A9nes?= Date: Thu, 17 Feb 2022 09:42:45 +0200 Subject: [PATCH] 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. --- test/lib/flat_mutation_reader_assertions.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/flat_mutation_reader_assertions.hh b/test/lib/flat_mutation_reader_assertions.hh index 2d946b71d1..4ba2a1d510 100644 --- a/test/lib/flat_mutation_reader_assertions.hh +++ b/test/lib/flat_mutation_reader_assertions.hh @@ -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))); }