Explicitly stop the server on tear-down

pull/8628/head
Masood Malekghassemi 8 years ago
parent 11948f7441
commit d6ddb0e37c
  1. 4
      src/python/grpcio_tests/tests/unit/_rpc_test.py

@ -191,6 +191,10 @@ class RPCTest(unittest.TestCase):
self._channel = grpc.insecure_channel('localhost:%d' % port) self._channel = grpc.insecure_channel('localhost:%d' % port)
def tearDown(self):
self._server.stop(None)
self._server_pool.shutdown(wait=True)
def testUnrecognizedMethod(self): def testUnrecognizedMethod(self):
request = b'abc' request = b'abc'

Loading…
Cancel
Save