aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/reflection
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2017-12-20 11:26:08 -0800
committerGravatar Ken Payson <kpayson@google.com>2017-12-20 13:02:00 -0800
commit3bc8e422dcc171aeda4a883b3d59c8e71d6cf33b (patch)
treef1a30fa4fc5f05438401012be9350db16e0c0426 /src/python/grpcio_tests/tests/reflection
parentcc04915b07cfd5245b43bb91cfa610cd406dc3f6 (diff)
Disable so_reuseport for Python tests
Diffstat (limited to 'src/python/grpcio_tests/tests/reflection')
-rw-r--r--src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py6
1 files changed, 2 insertions, 4 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 a86743fa5a..86037e258a 100644
--- a/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py
+++ b/src/python/grpcio_tests/tests/reflection/_reflection_servicer_test.py
@@ -16,7 +16,6 @@
import unittest
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
@@ -27,7 +26,7 @@ from google.protobuf import descriptor_pb2
from src.proto.grpc.testing import empty_pb2
from src.proto.grpc.testing.proto2 import empty2_extensions_pb2
-from tests.unit.framework.common import test_constants
+from tests.unit import test_common
_EMPTY_PROTO_FILE_NAME = 'src/proto/grpc/testing/empty.proto'
_EMPTY_PROTO_SYMBOL_NAME = 'grpc.testing.Empty'
@@ -46,8 +45,7 @@ def _file_descriptor_to_proto(descriptor):
class ReflectionServicerTest(unittest.TestCase):
def setUp(self):
- server_pool = logging_pool.pool(test_constants.THREAD_CONCURRENCY)
- self._server = grpc.server(server_pool)
+ self._server = test_common.test_server()
reflection.enable_server_reflection(_SERVICE_NAMES, self._server)
port = self._server.add_insecure_port('[::]:0')
self._server.start()