Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: Yixin Luo <[email protected]>
  • Loading branch information
luohaha committed Dec 25, 2023
1 parent 961be5c commit 0344581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/test/storage/persistent_index_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2918,7 +2918,7 @@ TEST_P(PersistentIndexTest, test_multi_l2_not_tmp_l1_update) {
// 1. upsert
for (int i = 0; i < K; i++) {
incre_key(i);
std::vector<IndexValue> old_values(M);
std::vector<IndexValue> old_values(M, IndexValue(NullIndexValue));
ASSERT_OK(index.load(index_meta));
ASSERT_OK(index.prepare(EditVersion(cur_version++, 0), M));
ASSERT_OK(index.upsert(M, key_slices.data(), values.data(), old_values.data()));
Expand All @@ -2929,7 +2929,7 @@ TEST_P(PersistentIndexTest, test_multi_l2_not_tmp_l1_update) {
// 2. update half key
for (int i = 0; i < K - 2; i++) {
update_key(i);
std::vector<IndexValue> old_values(M);
std::vector<IndexValue> old_values(M, IndexValue(NullIndexValue));
ASSERT_OK(index.load(index_meta));
ASSERT_OK(index.prepare(EditVersion(cur_version++, 0), M));
ASSERT_OK(index.upsert(M, key_slices.data(), values.data(), old_values.data()));
Expand Down

0 comments on commit 0344581

Please sign in to comment.