Increase default timeout in lldbutil.expect_state_changes()
authorAdrian Prantl <aprantl@apple.com>
Fri, 6 Mar 2020 17:59:45 +0000 (09:59 -0800)
committerAdrian Prantl <aprantl@apple.com>
Fri, 6 Mar 2020 18:00:47 +0000 (10:00 -0800)
lldb/packages/Python/lldbsuite/test/lldbutil.py
lldb/test/API/functionalities/gdb_remote_client/gdbclientutils.py

index 006362a..d603091 100644 (file)
@@ -1062,7 +1062,7 @@ def print_stacktraces(process, string_buffer=False):
         return output.getvalue()
 
 
-def expect_state_changes(test, listener, process, states, timeout=5):
+def expect_state_changes(test, listener, process, states, timeout=30):
     """Listens for state changed events on the listener and makes sure they match what we
     expect. Stop-and-restart events (where GetRestartedFromEvent() returns true) are ignored."""
 
index cebd3d2..944afd1 100644 (file)
@@ -340,7 +340,7 @@ class MockGDBServer:
         try:
             # accept() is stubborn and won't fail even when the socket is
             # shutdown, so we'll use a timeout
-            self._socket.settimeout(20.0)
+            self._socket.settimeout(30.0)
             client, client_addr = self._socket.accept()
             self._client = client
             # The connected client inherits its timeout from self._socket,