aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <atash@google.com>2016-11-04 15:52:16 -0700
committerGravatar GitHub <noreply@github.com>2016-11-04 15:52:16 -0700
commit80eb075e633219cf8972e778eb449d2271ee92ad (patch)
tree5dc6365509be0b68131fb4bae7e9d2e4daccee1a /src/python
parent503653e27ed882db1e8c134f9daca0bae451d325 (diff)
parentd6ddb0e37c2a1e8324725a98eac720efa97c63e9 (diff)
Merge pull request #8628 from soltanmm-google/turtles
Explicitly stop the server on tear-down
Diffstat (limited to 'src/python')
-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'