[Lldb-commits] [lldb] [lldb-dap] Fix flaky test (PR #145231)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 23 10:11:51 PDT 2025


================
@@ -101,7 +101,8 @@ def test_server_interrupt(self):
         # Interrupt the server which should disconnect all clients.
         process.send_signal(signal.SIGINT)
 
-        self.dap_server.wait_for_terminated()
+        self.dap_server.wait_for_event(["terminated", "exited"])
----------------
ashgti wrote:

It may be helpful to add a comment that we're waiting on both events and they can happen in any order.

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


More information about the lldb-commits mailing list