SamePrefixTest.InDomainTest to clear the test directory before testing

Summary: SamePrefixTest.InDomainTest may fail if the previous run of some test cases in prefix_test fail.

Test Plan: Run the test

Reviewers: lightmark, yhchiang, IslamAbdelRahman

Reviewed By: IslamAbdelRahman

Subscribers: leveldb, andrewkr, dhruba

Differential Revision: https://reviews.facebook.net/D65163
This commit is contained in:
sdong 2016-10-18 13:41:33 -07:00
parent aa09d03381
commit b4d07123c4
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ TEST(SamePrefixTest, InDomainTest) {
WriteOptions write_options;
ReadOptions read_options;
{
ASSERT_OK(DestroyDB(kDbName, Options()));
ASSERT_OK(DB::Open(options, kDbName, &db));
ASSERT_OK(db->Put(write_options, "HHKB pro2", "Mar 24, 2006"));
ASSERT_OK(db->Put(write_options, "HHKB pro2 Type-S", "June 29, 2011"));