]> git.scottworley.com Git - paperdoorknob/blobdiff - paperdoorknob_test.py
fetch: test: Explicitly close webserver
[paperdoorknob] / paperdoorknob_test.py
index cf945d60faec978ef258eb3396224398944688e7..c2fce2b5083c9f1d655ae8b9eb6e0fc25da6dd0c 100644 (file)
@@ -46,6 +46,7 @@ class TestFetch(unittest.TestCase):
     def tearDown(self) -> None:
         self._web_server.shutdown()
         self._thread.join()
+        self._web_server.server_close()
 
     def testFetch(self) -> None:
         paperdoorknob.fetch(f"http://localhost:{self._port()}", TIMEOUT)