aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio_tests/tests/unit
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-11-03 14:50:57 -0700
committerGravatar Masood Malekghassemi <atash@google.com>2016-11-03 15:29:27 -0700
commitd6ddb0e37c2a1e8324725a98eac720efa97c63e9 (patch)
tree42cb79822666fe2e5174829185b30f59048bfffa /src/python/grpcio_tests/tests/unit
parent11948f74414e6c95b81fbcc2f0d06afa0b1cbce5 (diff)
Explicitly stop the server on tear-down
Diffstat (limited to 'src/python/grpcio_tests/tests/unit')
-rw-r--r--src/python/grpcio_tests/tests/unit/_rpc_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/grpcio_tests/tests/unit/_rpc_test.py b/src/python/grpcio_tests/tests/unit/_rpc_test.py
index ab6546bf87..eb00156da5 100644
--- a/src/python/grpcio_tests/tests/unit/_rpc_test.py
+++ b/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)
+ def tearDown(self):
+ self._server.stop(None)
+ self._server_pool.shutdown(wait=True)
+
def testUnrecognizedMethod(self):
request = b'abc'