Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lidezhu committed Feb 14, 2023
1 parent 5e4cd29 commit 895a792
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class PageStorageMixedTest : public DB::base::TiFlashStorageTestBasic
storage_pool_v2 = std::make_unique<DM::StoragePool>(global_context, TEST_NAMESPACE_ID, *storage_path_pool_v2, "test.t1");

global_context.setPageStorageRunMode(PageStorageRunMode::MIX_MODE);
storage_pool_mix = std::make_unique<DM::StoragePool>(global_context,
storage_pool_mix = std::make_unique<DM::StoragePool>(*db_context,
TEST_NAMESPACE_ID,
*storage_path_pool_v2,
"test.t1");
Expand Down Expand Up @@ -683,7 +683,7 @@ try

{
ASSERT_EQ(reloadMixedStoragePool(), PageStorageRunMode::MIX_MODE);
ASSERT_EQ(storage_pool_mix->newLogPageId(), 4);
// ASSERT_EQ(storage_pool_mix->newLogPageId(), 4); // max id for v3 will not be updated, ignore this check
}
}
CATCH
Expand Down Expand Up @@ -728,7 +728,7 @@ try

{
ASSERT_EQ(reloadMixedStoragePool(), PageStorageRunMode::ONLY_V3);
ASSERT_EQ(storage_pool_mix->newLogPageId(), 2);
// ASSERT_EQ(storage_pool_mix->newLogPageId(), 2); // max id for v3 will not be updated, ignore this check
}
}
CATCH
Expand Down Expand Up @@ -758,7 +758,7 @@ try
{
ASSERT_EQ(reloadMixedStoragePool(), PageStorageRunMode::MIX_MODE);
ASSERT_EQ(page_reader_mix->getNormalPageId(2), 1);
ASSERT_EQ(storage_pool_mix->newLogPageId(), 3);
// ASSERT_EQ(storage_pool_mix->newLogPageId(), 3); // max id for v3 will not be updated, ignore this check
}

auto snapshot_before_del = page_reader_mix->getSnapshot("ReadWithSnapshotBeforeDelOrigin");
Expand Down

0 comments on commit 895a792

Please sign in to comment.