From b4d07123c4f3f84e7cbc0e6fcb400fdbf1bf1eb4 Mon Sep 17 00:00:00 2001 From: sdong Date: Tue, 18 Oct 2016 13:41:33 -0700 Subject: [PATCH] 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 --- db/prefix_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/prefix_test.cc b/db/prefix_test.cc index 455b67266..797f8d76d 100644 --- a/db/prefix_test.cc +++ b/db/prefix_test.cc @@ -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"));