Skip to content

Commit

Permalink
Fix failed UT on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
heng committed Jun 12, 2019
1 parent fe82c25 commit acfa2b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/meta/test/BalancerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
#include "base/Base.h"
#include <gtest/gtest.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "meta/processors/admin/Balancer.h"

namespace nebula {
Expand Down Expand Up @@ -86,6 +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 All @@ -96,6 +99,9 @@ int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
folly::init(&argc, &argv, true);
google::SetStderrLogging(google::INFO);
struct ::rlimit rl;
rl.rlim_max = 32L * 1024L * 1024L;
::setrlimit(::RLIMIT_STACK, &rl);
return RUN_ALL_TESTS();
}

Expand Down

0 comments on commit acfa2b1

Please sign in to comment.