Skip to content
Snippets Groups Projects
Commit d6ddb0e3 authored by Masood Malekghassemi's avatar Masood Malekghassemi
Browse files

Explicitly stop the server on tear-down

parent 11948f74
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,10 @@ class RPCTest(unittest.TestCase): ...@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment