mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
Use ASSERT_EQ() instead of assert() in merge_test
This commit is contained in:
parent
a09ee1069d
commit
dd6ecdf342
|
@ -340,8 +340,8 @@ void testSingleBatchSuccessiveMerge(
|
||||||
}
|
}
|
||||||
assert(get_value_str.size() == sizeof(uint64_t));
|
assert(get_value_str.size() == sizeof(uint64_t));
|
||||||
uint64_t get_value = DecodeFixed64(&get_value_str[0]);
|
uint64_t get_value = DecodeFixed64(&get_value_str[0]);
|
||||||
assert(get_value == num_merges * merge_value);
|
ASSERT_EQ(get_value, num_merges * merge_value);
|
||||||
assert(numMergeOperatorCalls == (num_merges % (max_num_merges + 1)));
|
ASSERT_EQ(numMergeOperatorCalls, (num_merges % (max_num_merges + 1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void runTest(int argc, const string& dbname, const bool use_ttl = false) {
|
void runTest(int argc, const string& dbname, const bool use_ttl = false) {
|
||||||
|
|
Loading…
Reference in a new issue