Skip to content

Commit 5ca41a8

Browse files
committed
curvebs(tools): Disable EtcdClientTest
Signed-off-by: Hanqing Wu <wuhanqing@corp.netease.com>
1 parent 5c560b0 commit 5ca41a8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/kvstorageclient/etcdclient_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class TestEtcdClinetImp : public ::testing::Test {
5454

5555
client_ = std::make_shared<EtcdClientImp>();
5656
char endpoints[] = "127.0.0.1:2377";
57-
EtcdConf conf = { endpoints, strlen(endpoints), 1000 };
57+
EtcdConf conf = { endpoints, strlen(endpoints), 3000 };
5858
ASSERT_EQ(EtcdErrCode::EtcdDeadlineExceeded,
59-
client_->Init(conf, 200, 3));
59+
client_->Init(conf, 1000, 3));
6060

6161
etcdPid = ::fork();
6262
if (0 > etcdPid) {

test/tools/etcd_client_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "src/tools/etcd_client.h"
2828
#include "src/common/timeutility.h"
2929

30-
class EtcdClientTest : public ::testing::Test {
30+
class DISABLED_EtcdClientTest : public ::testing::Test {
3131
protected:
3232
void SetUp() {
3333
system("rm -fr test1.etcd");
@@ -82,7 +82,7 @@ class EtcdClientTest : public ::testing::Test {
8282
const std::string etcdAddr = "127.0.0.1:2366,127.0.0.1:2368";
8383
};
8484

85-
TEST_F(EtcdClientTest, GetEtcdClusterStatus) {
85+
TEST_F(DISABLED_EtcdClientTest, GetEtcdClusterStatus) {
8686
curve::tool::EtcdClient client;
8787
// Init失败的情况
8888
ASSERT_EQ(-1, client.Init(""));
@@ -104,7 +104,7 @@ TEST_F(EtcdClientTest, GetEtcdClusterStatus) {
104104
ASSERT_EQ(-1, client.GetEtcdClusterStatus(&leaderAddrVec, nullptr));
105105
}
106106

107-
TEST_F(EtcdClientTest, GetAndCheckEtcdVersion) {
107+
TEST_F(DISABLED_EtcdClientTest, GetAndCheckEtcdVersion) {
108108
curve::tool::EtcdClient client;
109109
ASSERT_EQ(0, client.Init("127.0.0.1:2366"));
110110

0 commit comments

Comments
 (0)