Minor fix for debugging

pull/2549/head
Hongwei Wang 10 years ago
parent d7c5aa856b
commit eeb61ba355
  1. 1
      src/core/client_config/resolvers/zookeeper_resolver.c
  2. 3
      test/cpp/end2end/zookeeper_test.cc

@ -267,6 +267,7 @@ static char *zookeeper_parse_address(char *buffer, int buffer_len) {
} }
if (host != NULL && port != NULL) { if (host != NULL && port != NULL) {
gpr_asprintf(&address, "%s:%s", host, port); gpr_asprintf(&address, "%s:%s", host, port);
gpr_log(GPR_DEBUG, address);
} }
grpc_json_destroy(json); grpc_json_destroy(json);
} }

@ -184,7 +184,8 @@ TEST_F(ZookeeperTest, ZookeeperStateChangeTwoRpc) {
EXPECT_TRUE(s1.ok()); EXPECT_TRUE(s1.ok());
// Zookeeper state change // Zookeeper state change
DeleteService("/test/2"); gpr_log(GPR_DEBUG, "delete /test/1");
DeleteService("/test/1");
sleep(1); sleep(1);
// Second RPC // Second RPC

Loading…
Cancel
Save