Remove unnecessary shutdown function
This commit is contained in:
parent
29b2377a58
commit
d88eecc0da
2 changed files with 2 additions and 5 deletions
|
@ -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):
|
||||
|
|
|
@ -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"}
|
||||
|
|
Reference in a new issue