Fix: forgot to close TCP socket
This commit is contained in:
parent
869908daef
commit
e9ac3d291d
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -29,6 +29,9 @@ class TestTCP(TestCase):
|
||||||
data = self.sock.recv(1024)
|
data = self.sock.recv(1024)
|
||||||
self.assertEqual(data, b'OK')
|
self.assertEqual(data, b'OK')
|
||||||
|
|
||||||
|
def tearDown(self) -> None:
|
||||||
|
self.sock.close()
|
||||||
|
|
||||||
|
|
||||||
class TestHTTP(TestCase):
|
class TestHTTP(TestCase):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue