pull/25365/head
Richard Belleville 4 years ago
parent accaddc098
commit 859269e511
  1. 6
      src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py
  2. 18
      src/python/grpcio_tests/tests/unit/_cython/cygrpc_test.py

@ -144,12 +144,10 @@ class CancelManyCallsTest(unittest.TestCase):
test_constants.THREAD_CONCURRENCY)
server_completion_queue = cygrpc.CompletionQueue()
server = cygrpc.Server([
(
server = cygrpc.Server([(
b'grpc.so_reuseport',
0,
)
], False)
)], False)
server.register_completion_queue(server_completion_queue)
port = server.add_http2_port(b'[::]:0')
server.start()

@ -42,12 +42,10 @@ class TypeSmokeTest(unittest.TestCase):
del completion_queue
def testServerUpDown(self):
server = cygrpc.Server(set([
(
server = cygrpc.Server(set([(
b'grpc.so_reuseport',
0,
)
]), False)
)]), False)
del server
def testChannelUpDown(self):
@ -59,12 +57,10 @@ class TypeSmokeTest(unittest.TestCase):
b'test plugin name!')
def testServerStartNoExplicitShutdown(self):
server = cygrpc.Server([
(
server = cygrpc.Server([(
b'grpc.so_reuseport',
0,
)
], False)
)], False)
completion_queue = cygrpc.CompletionQueue()
server.register_completion_queue(completion_queue)
port = server.add_http2_port(b'[::]:0')
@ -97,12 +93,10 @@ class ServerClientMixin(object):
def setUpMixin(self, server_credentials, client_credentials, host_override):
self.server_completion_queue = cygrpc.CompletionQueue()
self.server = cygrpc.Server([
(
self.server = cygrpc.Server([(
b'grpc.so_reuseport',
0,
)
], False)
)], False)
self.server.register_completion_queue(self.server_completion_queue)
if server_credentials:
self.port = self.server.add_http2_port(b'[::]:0',

Loading…
Cancel
Save