PrefixTest.PrefixAndWholeKeyTest should run against a different directory from prefix_test

Summary: PrefixTest.PrefixAndWholeKeyTest runs against the same directory as prefix_test, which sometimes fail parallel tests. Fix it.

Test Plan: Run it in parallel and see it doesn't fail anymore.

Reviewers: andrewkr

Reviewed By: andrewkr

Subscribers: leveldb, andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D56541
main
sdong 9 years ago
parent 0e3cc2cf1f
commit 30d72ee43c
  1. 2
      table/table_test.cc

@ -2429,7 +2429,7 @@ TEST_F(PrefixTest, PrefixAndWholeKeyTest) {
bbto.whole_key_filtering = true;
const std::string kDBPath = test::TmpDir() + "/prefix_test";
const std::string kDBPath = test::TmpDir() + "/table_prefix_test";
options.table_factory.reset(NewBlockBasedTableFactory(bbto));
DestroyDB(kDBPath, options);
rocksdb::DB* db;

Loading…
Cancel
Save