From 1d75e10c63e2ba7e73183a205a0da4dec13992a7 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 31 May 2024 19:50:06 +0400 Subject: [PATCH] Fix: close UDP socket --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 8388db3..0cc41c2 100644 --- a/main.py +++ b/main.py @@ -48,6 +48,9 @@ class TestUDP(TestCase): def test_json(self) -> None: self.sock.sendto(device.json_req_data().encode(), UDP_ADDR) + def tearDown(self) -> None: + self.sock.close() + class TestHTTP(TestCase):