From 85d5115409dc967e3395504166eee87032ef5700 Mon Sep 17 00:00:00 2001 From: Doodle <13706157+critical27@users.noreply.github.com> Date: Wed, 28 Aug 2019 22:09:01 +0800 Subject: [PATCH] temporarily disabled two leader transfer ut (#859) --- src/kvstore/PartManager.h | 2 +- src/kvstore/test/NebulaStoreTest.cpp | 2 +- src/meta/processors/admin/Balancer.h | 2 +- src/meta/test/BalanceIntegrationTest.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kvstore/PartManager.h b/src/kvstore/PartManager.h index 0f0d2715e09..9bc05c2a75e 100644 --- a/src/kvstore/PartManager.h +++ b/src/kvstore/PartManager.h @@ -72,7 +72,7 @@ class MemPartManager final : public PartManager { FRIEND_TEST(NebulaStoreTest, SimpleTest); FRIEND_TEST(NebulaStoreTest, PartsTest); FRIEND_TEST(NebulaStoreTest, ThreeCopiesTest); - FRIEND_TEST(NebulaStoreTest, TransLeaderTest); + FRIEND_TEST(NebulaStoreTest, DISABLED_TransLeaderTest); public: MemPartManager() = default; diff --git a/src/kvstore/test/NebulaStoreTest.cpp b/src/kvstore/test/NebulaStoreTest.cpp index c1e45314ec4..1766bd18579 100644 --- a/src/kvstore/test/NebulaStoreTest.cpp +++ b/src/kvstore/test/NebulaStoreTest.cpp @@ -384,7 +384,7 @@ TEST(NebulaStoreTest, ThreeCopiesTest) { } } -TEST(NebulaStoreTest, TransLeaderTest) { +TEST(NebulaStoreTest, DISABLED_TransLeaderTest) { fs::TempDir rootPath("/tmp/trans_leader_test.XXXXXX"); auto initNebulaStore = [](const std::vector& peers, int32_t index, diff --git a/src/meta/processors/admin/Balancer.h b/src/meta/processors/admin/Balancer.h index a633db1e2e1..d809a061b8a 100644 --- a/src/meta/processors/admin/Balancer.h +++ b/src/meta/processors/admin/Balancer.h @@ -49,7 +49,7 @@ class Balancer { FRIEND_TEST(BalanceTest, IntersectHostsLeaderBalancePlanTest); FRIEND_TEST(BalanceTest, LeaderBalanceTest); FRIEND_TEST(BalanceTest, ManyHostsLeaderBalancePlanTest); - FRIEND_TEST(BalanceIntegrationTest, LeaderBalanceTest); + FRIEND_TEST(BalanceIntegrationTest, DISABLED_LeaderBalanceTest); public: static Balancer* instance(kvstore::KVStore* kv) { diff --git a/src/meta/test/BalanceIntegrationTest.cpp b/src/meta/test/BalanceIntegrationTest.cpp index a7dd77afc1b..6b2e1e1c65d 100644 --- a/src/meta/test/BalanceIntegrationTest.cpp +++ b/src/meta/test/BalanceIntegrationTest.cpp @@ -26,7 +26,7 @@ TEST(BalanceIntegrationTest, SimpleTest) { LOG(INFO) << "Start storage server on " << sc->port_; } -TEST(BalanceIntegrationTest, LeaderBalanceTest) { +TEST(BalanceIntegrationTest, DISABLED_LeaderBalanceTest) { FLAGS_load_data_interval_secs = 1; FLAGS_heartbeat_interval_secs = 1; FLAGS_raft_heartbeat_interval_secs = 1;