Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
anand1976 committed Apr 19, 2024
1 parent 288eeea commit 4d19792
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions db/db_follower_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class DBFollowerTest : public DBTestBase {
public:
// Create directories for leader and follower
// Create the leader DB object
DBFollowerTest()
: DBTestBase("/db_follower_test", /*env_do_fsync*/false) {
DBFollowerTest() : DBTestBase("/db_follower_test", /*env_do_fsync*/ false) {
follower_name_ = dbname_ + "/follower";
Close();
Destroy(CurrentOptions());
Expand All @@ -27,12 +26,13 @@ class DBFollowerTest : public DBTestBase {

~DBFollowerTest() {
follower_.reset();
EXPECT_EQ(DestroyDB(follower_name_, CurrentOptions()), Status::OK());
EXPECT_EQ(DestroyDB(follower_name_, CurrentOptions()), Status::OK());
}

protected:
Status OpenAsFollower() {
return DB::OpenAsFollower(CurrentOptions(), follower_name_, dbname_, &follower_);
return DB::OpenAsFollower(CurrentOptions(), follower_name_, dbname_,
&follower_);
}
DB* follower() { return follower_.get(); }

Expand All @@ -54,7 +54,7 @@ TEST_F(DBFollowerTest, Basic) {
}

#endif
} // namespace ROCKSDB_NAMESPACE
} // namespace ROCKSDB_NAMESPACE

int main(int argc, char** argv) {
ROCKSDB_NAMESPACE::port::InstallStackTraceHandler();
Expand Down

0 comments on commit 4d19792

Please sign in to comment.