]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/rgw/notification: prevent failed http tests from hanging
authorYuval Lifshitz <ylifshit@ibm.com>
Fri, 3 May 2024 12:04:45 +0000 (12:04 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Fri, 3 May 2024 12:04:45 +0000 (12:04 +0000)
this is a regressions from: 673adcbdbd01e64c8b76c3176e062571fb8710ac

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
src/test/rgw/bucket_notification/test_bn.py

index fda0cf29173d2683031ab99158dd834fe6083795..c3281ef0c3ec129ac70f597f3494e7840474a4a6 100644 (file)
@@ -171,6 +171,7 @@ class HTTPServerWithEvents(ThreadingHTTPServer):
         ThreadingHTTPServer.__init__(self, addr, HTTPPostHandler)
         log.info('http server created on %s', str(self.addr))
         self.proc = threading.Thread(target=self.run)
+        self.proc.daemon = True
         self.proc.start()
         retries = 0
         while self.proc.is_alive() == False and retries < 5: