Fix: close UDP socket

This commit is contained in:
DarkCat09 2024-05-31 19:50:06 +04:00
parent 30c9f0d8db
commit 1d75e10c63
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -48,6 +48,9 @@ class TestUDP(TestCase):
def test_json(self) -> None: def test_json(self) -> None:
self.sock.sendto(device.json_req_data().encode(), UDP_ADDR) self.sock.sendto(device.json_req_data().encode(), UDP_ADDR)
def tearDown(self) -> None:
self.sock.close()
class TestHTTP(TestCase): class TestHTTP(TestCase):