Fix server plugin test

pull/6612/head
Craig Tiller 9 years ago
parent 8ad69bfab5
commit aae6c2cb96
  1. 2
      src/cpp/server/server_builder.cc
  2. 2
      test/cpp/end2end/server_builder_plugin_test.cc

@ -155,7 +155,7 @@ std::unique_ptr<Server> ServerBuilder::BuildAndStart() {
if (num_frequently_polled_cqs == 0) {
gpr_log(GPR_ERROR,
"Atleast one of the completion queues must be frequently polled");
"At least one of the completion queues must be frequently polled");
return nullptr;
}

@ -189,6 +189,7 @@ class ServerBuilderPluginTest : public ::testing::TestWithParam<bool> {
void StartServer() {
grpc::string server_address = "localhost:" + to_string(port_);
builder_->AddListeningPort(server_address, InsecureServerCredentials());
cq_ = builder_->AddCompletionQueue();
server_ = builder_->BuildAndStart();
EXPECT_TRUE(builder_->plugins_[PLUGIN_NAME] != nullptr);
}
@ -219,6 +220,7 @@ class ServerBuilderPluginTest : public ::testing::TestWithParam<bool> {
std::unique_ptr<ServerBuilder> builder_;
std::unique_ptr<grpc::testing::EchoTestService::Stub> stub_;
std::unique_ptr<Server> server_;
std::unique_ptr<ServerCompletionQueue> cq_;
TestServiceImpl service_;
int port_;
};

Loading…
Cancel
Save