mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 00:50:03 +08:00
Increase default timeout in lldbutil.expect_state_changes()
This commit is contained in:
@@ -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."""
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user