Skip to content

Commit

Permalink
add random segment test for CI weekly (pingcap#5300)
Browse files Browse the repository at this point in the history
  • Loading branch information
hehechen authored and Lloyd-Pottiger committed Jul 19, 2022
1 parent 930d0be commit 8288729
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dbms/src/Storages/DeltaMerge/tests/gtest_segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,26 @@ CATCH
TEST_F(SegmentOperationTest, TestSegmentRandom)
try
{
srand(time(nullptr));
SegmentTestOptions options;
options.is_common_handle = true;
reloadWithOptions(options);
randomSegmentTest(100);
}
CATCH

// run in CI weekly
TEST_F(SegmentOperationTest, DISABLED_TestSegmentRandomForCI)
try
{
srand(time(nullptr));
SegmentTestOptions options;
options.is_common_handle = true;
reloadWithOptions(options);
randomSegmentTest(10000);
}
CATCH

} // namespace tests
} // namespace DM
} // namespace DB

0 comments on commit 8288729

Please sign in to comment.