Increase default timeout in lldbutil.expect_state_changes()

This commit is contained in:
Adrian Prantl
2020-03-06 09:59:45 -08:00
parent 58c506d8e8
commit 3ed02340ea
2 changed files with 2 additions and 2 deletions

View 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."""

View 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,