diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-04-24 23:24:44 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-04-24 23:24:44 +0200 |
commit | fd2bf675f750f440d92bffeb88771e6d9253b498 (patch) | |
tree | 340f8a6b8a5b181c215a90e038b17475a3206855 /examples | |
parent | 76e49fd80557c33595508686f3450982e63f0fce (diff) | |
parent | 4107ba289747be6fba879e6060d40969f1aee89c (diff) |
Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
include/grpc++/completion_queue.h
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pubsub/main.cc | 3 | ||||
-rw-r--r-- | examples/pubsub/publisher_test.cc | 2 | ||||
-rw-r--r-- | examples/pubsub/subscriber_test.cc | 2 |
3 files changed, 0 insertions, 7 deletions
diff --git a/examples/pubsub/main.cc b/examples/pubsub/main.cc index cf0f21eace..68620e64c5 100644 --- a/examples/pubsub/main.cc +++ b/examples/pubsub/main.cc @@ -64,7 +64,6 @@ const char kMessageData[] = "Test Data"; } // namespace int main(int argc, char** argv) { - grpc_init(); grpc::testing::InitTest(&argc, &argv, true); gpr_log(GPR_INFO, "Start PUBSUB client"); @@ -145,7 +144,5 @@ int main(int argc, char** argv) { subscriber.Shutdown(); publisher.Shutdown(); - channel.reset(); - grpc_shutdown(); return 0; } diff --git a/examples/pubsub/publisher_test.cc b/examples/pubsub/publisher_test.cc index ac4921283f..6b9dcacc49 100644 --- a/examples/pubsub/publisher_test.cc +++ b/examples/pubsub/publisher_test.cc @@ -148,10 +148,8 @@ TEST_F(PublisherTest, TestPublisher) { int main(int argc, char** argv) { grpc_test_init(argc, argv); - grpc_init(); ::testing::InitGoogleTest(&argc, argv); gpr_log(GPR_INFO, "Start test ..."); int result = RUN_ALL_TESTS(); - grpc_shutdown(); return result; } diff --git a/examples/pubsub/subscriber_test.cc b/examples/pubsub/subscriber_test.cc index 9ab60ed6a7..b0e7fc034b 100644 --- a/examples/pubsub/subscriber_test.cc +++ b/examples/pubsub/subscriber_test.cc @@ -147,10 +147,8 @@ TEST_F(SubscriberTest, TestSubscriber) { int main(int argc, char** argv) { grpc_test_init(argc, argv); - grpc_init(); ::testing::InitGoogleTest(&argc, argv); gpr_log(GPR_INFO, "Start test ..."); int result = RUN_ALL_TESTS(); - grpc_shutdown(); return result; } |