Fix test to use non-wrapping range

The test put a wrapping range into a non-wrapping range variable.
This was harmless at the time this test was written, but newer code
may not be as forgiving so better use a non-wrapping range as intended.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>
Message-Id: <20170704103128.29689-1-nyh@scylladb.com>
(cherry picked from commit d95f908586)
This commit is contained in:
Nadav Har'El
2017-07-04 13:31:28 +03:00
committed by Avi Kivity
parent 19a07143eb
commit e467eef58d

View File

@@ -925,8 +925,8 @@ BOOST_AUTO_TEST_CASE(test_split_range_single_shard) {
// tests for range_split() utility function in repair/range_split.hh
static int test_split(int N, int K) {
auto t1 = token_from_long(0x6000'0000'0000'0000);
auto t2 = token_from_long(0x9000'0000'0000'0000);
auto t1 = token_from_long(0x2000'0000'0000'0000);
auto t2 = token_from_long(0x5000'0000'0000'0000);
dht::token_range r{range_bound<dht::token>(t1), range_bound<dht::token>(t2)};
auto splitter = range_splitter(r, N, K);
int c = 0;