Fix: close UDP socket
This commit is contained in:
parent
30c9f0d8db
commit
1d75e10c63
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -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):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue