diff options
author | Craig Tiller <ctiller@google.com> | 2016-05-20 10:44:23 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-05-20 10:44:23 -0700 |
commit | 718ce51af8a24dcf3c02f1f02c9ba7ed1e17c9ee (patch) | |
tree | 17f4b279be1385a3f676a9957e8ef364317cb28c /test | |
parent | e004958fd691ba0fa2b9f83df5da79919d4f0313 (diff) |
Fix server plugin test
Diffstat (limited to 'test')
-rw-r--r-- | test/cpp/end2end/server_builder_plugin_test.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/cpp/end2end/server_builder_plugin_test.cc b/test/cpp/end2end/server_builder_plugin_test.cc index 17fc1afbd8..8a74621e5a 100644 --- a/test/cpp/end2end/server_builder_plugin_test.cc +++ b/test/cpp/end2end/server_builder_plugin_test.cc @@ -207,6 +207,12 @@ class ServerBuilderPluginTest : public ::testing::TestWithParam<bool> { EXPECT_TRUE(plugin != nullptr); EXPECT_TRUE(plugin->init_server_is_called()); EXPECT_TRUE(plugin->finish_is_called()); + server_->Shutdown(); + void* tag; + bool ok; + cq_->Shutdown(); + while (cq_->Next(&tag, &ok)) + ; } string to_string(const int number) { @@ -219,8 +225,8 @@ class ServerBuilderPluginTest : public ::testing::TestWithParam<bool> { std::shared_ptr<Channel> channel_; std::unique_ptr<ServerBuilder> builder_; std::unique_ptr<grpc::testing::EchoTestService::Stub> stub_; - std::unique_ptr<Server> server_; std::unique_ptr<ServerCompletionQueue> cq_; + std::unique_ptr<Server> server_; TestServiceImpl service_; int port_; }; |