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
main
Levi Tamasi 5 years ago committed by Facebook Github Bot
parent 70c7302fb5
commit 3f89af1c39
  1. 2
      utilities/table_properties_collectors/compact_on_deletion_collector_test.cc

@ -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);

Loading…
Cancel
Save