summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-09-03 06:18:35 +0200
committerJürg Billeter <j@bitron.ch>2019-09-03 11:17:28 +0200
commit655f11fcff2e7541aa8d4e263d128e6672a302e5 (patch)
treeda5bdbb6d63aa5c7aa1c080e1a67a8d7c9030541 /tests
parent429a9c0f597305699a6c05856784a06f8983bd2a (diff)
downloadbuildstream-655f11fcff2e7541aa8d4e263d128e6672a302e5.tar.gz
tests/testutils/http_server.py: Close queue to stop background thread
Diffstat (limited to 'tests')
-rw-r--r--tests/testutils/http_server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testutils/http_server.py b/tests/testutils/http_server.py
index 049769e72..6ecb7b5b3 100644
--- a/tests/testutils/http_server.py
+++ b/tests/testutils/http_server.py
@@ -106,6 +106,8 @@ class SimpleHttpServer(multiprocessing.Process):
self.__stop.put(None)
self.terminate()
self.join()
+ self.__stop.close()
+ self.__stop.join_thread()
def allow_anonymous(self, cwd):
self.server.anonymous_dir = cwd