Remove unnecessary shutdown function

This commit is contained in:
Jake Howard 2018-12-08 13:07:51 +00:00
parent 29b2377a58
commit d88eecc0da
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 5 deletions

View file

@ -38,11 +38,8 @@ class Server:
thread.start()
return thread
def shutdown(self):
self.server.shutdown()
def close(self):
self.shutdown()
self.server.shutdown()
self.server.server_close()
def handle_request(self, request: dict):

View file

@ -14,7 +14,7 @@ class SimpleServerTestCase(TestCase):
self.send_to_client = partial(send_to, self.socket_path)
def tearDown(self):
self.server.shutdown()
self.server.close()
def test_sending_dict(self):
data = {"foo": "bar"}