Reduce the number of random iterations in compact_on_deletion_collector_test (#5635)

Summary:
This test frequently times out under TSAN; reducing the number of random
iterations to make it complete faster.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5635

Test Plan: buck test mode/dev-tsan internal_repo_rocksdb/repo:compact_on_deletion_collector_test

Differential Revision: D16523505

Pulled By: ltamasi

fbshipit-source-id: 6a69909bce9d204c891150fcb3d536547b3253d0
This commit is contained in:
Levi Tamasi 2019-07-26 15:48:35 -07:00 committed by Facebook Github Bot
parent 70c7302fb5
commit 3f89af1c39

View File

@ -40,7 +40,7 @@ int main(int /*argc*/, char** /*argv*/) {
// randomize tests
rocksdb::Random rnd(301);
const int kMaxTestSize = 100000l;
for (int random_test = 0; random_test < 30; random_test++) {
for (int random_test = 0; random_test < 10; random_test++) {
int window_size = rnd.Uniform(kMaxTestSize) + 1;
int deletion_trigger = rnd.Uniform(window_size);
window_sizes.emplace_back(window_size);