diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-04-01 15:03:30 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-04-01 15:03:30 +0000 |
commit | d35e7e3740bba3eaba65c7f069263172b0bb8fd1 (patch) | |
tree | 03f918ed676b6ab20e9e63b81bd4ac76995f7b23 | |
parent | 1e89cdd6906be222e27871f620703d89e3edc370 (diff) |
Use a long enough string of atleast 12 bytes.
-rw-r--r-- | searchcore/src/tests/proton/bucketdb/bucketdb/bucketdb_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/bucketdb/bucketdb/bucketdb_test.cpp b/searchcore/src/tests/proton/bucketdb/bucketdb/bucketdb_test.cpp index 81177fd72d3..998b1626aeb 100644 --- a/searchcore/src/tests/proton/bucketdb/bucketdb/bucketdb_test.cpp +++ b/searchcore/src/tests/proton/bucketdb/bucketdb/bucketdb_test.cpp @@ -218,8 +218,8 @@ TEST("require that bucket db can be explored") BucketChecksum verifyChecksumCompliance(ChecksumAggregator::ChecksumType type) { - GlobalId gid1("a"); - GlobalId gid2("b"); + GlobalId gid1("aaaaaaaaaaaa"); + GlobalId gid2("bbbbbbbbbbbb"); Timestamp t1(0); Timestamp t2(1); auto ckaggr = ChecksumAggregator::create(type, BucketChecksum(0)); @@ -267,12 +267,12 @@ verifyChecksumCompliance(ChecksumAggregator::ChecksumType type) { TEST("test that legacy checksum complies") { BucketChecksum cksum = verifyChecksumCompliance(ChecksumAggregator::ChecksumType::LEGACY); - EXPECT_EQUAL(0x61u, cksum); + EXPECT_EQUAL(0x24242423u, cksum); } TEST("test that xxhash64 checksum complies") { BucketChecksum cksum = verifyChecksumCompliance(ChecksumAggregator::ChecksumType::XXHASH64); - EXPECT_EQUAL(0xc34cd5c3u, cksum); + EXPECT_EQUAL(0xd26fca9au, cksum); } TEST_MAIN() { TEST_RUN_ALL(); } |