Skip to content

Commit

Permalink
Open the second ut
Browse files Browse the repository at this point in the history
  • Loading branch information
heng committed Jun 12, 2019
1 parent e461f8f commit d088f32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/meta/test/BalancerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class TestFaultInjector : public FaultInjector {
};

TEST(BalanceTaskTest, SimpleTest) {
/*
{
std::vector<Status> sts(7, Status::OK());
std::unique_ptr<FaultInjector> injector(new TestFaultInjector(std::move(sts)));
Expand All @@ -64,8 +65,7 @@ TEST(BalanceTaskTest, SimpleTest) {
ASSERT_EQ(BalanceTask::Result::SUCCECCED, task.ret_);
ASSERT_EQ(BalanceTask::Status::END, task.status_);
}
LOG(INFO) << "Test finished!";
/*
*/
{
std::vector<Status> sts{Status::Error("transLeader failed!"),
Status::OK(),
Expand All @@ -88,7 +88,7 @@ TEST(BalanceTaskTest, SimpleTest) {
ASSERT_EQ(BalanceTask::Result::FAILED, task.ret_);
ASSERT_EQ(BalanceTask::Status::CHANGE_LEADER, task.status_);
}
*/
LOG(INFO) << "Test finished!";
}

} // namespace meta
Expand Down

0 comments on commit d088f32

Please sign in to comment.