Skip to content
Snippets Groups Projects
Commit 2b1b95a7 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Change zookeeper address to grpc-jenkins-master in zookeeper_test

parent 443a7501
No related branches found
No related tags found
No related merge requests found
...@@ -87,6 +87,7 @@ class ZookeeperTest : public ::testing::Test { ...@@ -87,6 +87,7 @@ class ZookeeperTest : public ::testing::Test {
void ZookeeperSetUp(const char* zookeeper_address, int port) { void ZookeeperSetUp(const char* zookeeper_address, int port) {
zoo_set_debug_level(ZOO_LOG_LEVEL_WARN); zoo_set_debug_level(ZOO_LOG_LEVEL_WARN);
gpr_log(GPR_INFO, zookeeper_address);
zookeeper_handle_ = zookeeper_init(zookeeper_address, NULL, 15000, 0, 0, 0); zookeeper_handle_ = zookeeper_init(zookeeper_address, NULL, 15000, 0, 0, 0);
GPR_ASSERT(zookeeper_handle_ != NULL); GPR_ASSERT(zookeeper_handle_ != NULL);
...@@ -146,7 +147,7 @@ class ZookeeperTest : public ::testing::Test { ...@@ -146,7 +147,7 @@ class ZookeeperTest : public ::testing::Test {
} }
void ResetStub() { void ResetStub() {
channel_ = CreateChannel("zookeeper://localhost:2181/test", channel_ = CreateChannel("zookeeper://grpc-jenkins-master:2181/test",
InsecureCredentials(), ChannelArguments()); InsecureCredentials(), ChannelArguments());
stub_ = std::move(grpc::cpp::test::util::TestService::NewStub(channel_)); stub_ = std::move(grpc::cpp::test::util::TestService::NewStub(channel_));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment