Skip to content

Commit

Permalink
curvebs(tools): Disable EtcdClientTest
Browse files Browse the repository at this point in the history
Signed-off-by: Hanqing Wu <[email protected]>
  • Loading branch information
wu-hanqing committed Dec 27, 2023
1 parent 5c560b0 commit 5ca41a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/kvstorageclient/etcdclient_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class TestEtcdClinetImp : public ::testing::Test {

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

etcdPid = ::fork();
if (0 > etcdPid) {
Expand Down
6 changes: 3 additions & 3 deletions test/tools/etcd_client_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "src/tools/etcd_client.h"
#include "src/common/timeutility.h"

class EtcdClientTest : public ::testing::Test {
class DISABLED_EtcdClientTest : public ::testing::Test {
protected:
void SetUp() {
system("rm -fr test1.etcd");
Expand Down Expand Up @@ -82,7 +82,7 @@ class EtcdClientTest : public ::testing::Test {
const std::string etcdAddr = "127.0.0.1:2366,127.0.0.1:2368";
};

TEST_F(EtcdClientTest, GetEtcdClusterStatus) {
TEST_F(DISABLED_EtcdClientTest, GetEtcdClusterStatus) {
curve::tool::EtcdClient client;
// Init失败的情况
ASSERT_EQ(-1, client.Init(""));
Expand All @@ -104,7 +104,7 @@ TEST_F(EtcdClientTest, GetEtcdClusterStatus) {
ASSERT_EQ(-1, client.GetEtcdClusterStatus(&leaderAddrVec, nullptr));
}

TEST_F(EtcdClientTest, GetAndCheckEtcdVersion) {
TEST_F(DISABLED_EtcdClientTest, GetAndCheckEtcdVersion) {
curve::tool::EtcdClient client;
ASSERT_EQ(0, client.Init("127.0.0.1:2366"));

Expand Down

0 comments on commit 5ca41a8

Please sign in to comment.