aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-03-21 14:00:05 -0700
committerGravatar Muxi Yan <mxyan@google.com>2017-03-21 14:01:05 -0700
commit12b44ae5ecb865aedcf9a6b86268a85cd43c5555 (patch)
tree53afb65d52179cfeb069727d7a46864cce90adbf /src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py
parent94f3dddfdc584b9de7e61f14e97183833dc5672e (diff)
parent62d1dd920e15798a8a338aa5553cc592d91631c0 (diff)
Merge remote-tracking branch 'upstream/master' into enable-cronet-compression
Diffstat (limited to 'src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py')
-rw-r--r--src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py b/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py
index d06ff064e2..4d73be6204 100644
--- a/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py
+++ b/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py
@@ -34,6 +34,7 @@ import grpc
from grpc.framework.foundation import logging_pool
from grpc_reflection.v1alpha import reflection
from grpc_reflection.v1alpha import reflection_pb2
+from grpc_reflection.v1alpha import reflection_pb2_grpc
from google.protobuf import descriptor_pool
from google.protobuf import descriptor_pb2
@@ -61,12 +62,12 @@ class ReflectionServicerTest(unittest.TestCase):
server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
self._server = grpc.server(server_pool)
port = self._server.add_insecure_port('[::]:0')
- reflection_pb2.add_ServerReflectionServicer_to_server(servicer,
- self._server)
+ reflection_pb2_grpc.add_ServerReflectionServicer_to_server(servicer,
+ self._server)
self._server.start()
channel = grpc.insecure_channel('localhost:%d' % port)
- self._stub = reflection_pb2.ServerReflectionStub(channel)
+ self._stub = reflection_pb2_grpc.ServerReflectionStub(channel)
def testFileByName(self):
requests = (reflection_pb2.ServerReflectionRequest(