[Lldb-commits] [lldb] [lldb][test] Fix flaky results from TestSymStore.py test_http_timeout (PR #221196)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 4 04:01:18 PDT 2026


================
@@ -234,18 +234,13 @@ def do_GET(self):
         super().do_GET()
 
 
-class SlowHTTPHandler(http.server.BaseHTTPRequestHandler):
-    """HTTP request handler that delays responses to simulate a slow server."""
+class NeverRespondsHTTPHandler(http.server.BaseHTTPRequestHandler):
+    """HTTP request handler that never responds."""
 
-    delay = 2  # seconds to sleep before responding; set per test
+    can_finish = threading.Event()
----------------
DavidSpickett wrote:

https://docs.python.org/3/library/threading.html#threading.Event

https://github.com/llvm/llvm-project/pull/221196


More information about the lldb-commits mailing list