mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Increase connection timeouts in tests (#646)
Fixes #631 * PTVSD takes a while to load, hence having a timeout of 1.0 is not sufficient. * Increased time to 5.0 as that'll give it plenty of time to load. * why 5s instead of 2s, simple, why not 5s instead of 2s.
This commit is contained in:
parent
3c29eeeab7
commit
14fdadf770
3 changed files with 2 additions and 3 deletions
|
|
@ -127,7 +127,6 @@ class _LifecycleClient(Closeable):
|
|||
cwd=None,
|
||||
**kwargs):
|
||||
if script is not None:
|
||||
|
||||
def start(*args, **kwargs):
|
||||
return DebugAdapter.start_wrapper_script(
|
||||
script, *args, **kwargs)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class DebugSessionConnection(Closeable):
|
|||
VERBOSE = False
|
||||
#VERBOSE = True
|
||||
|
||||
TIMEOUT = 1.0
|
||||
TIMEOUT = 5.0
|
||||
|
||||
@classmethod
|
||||
def create_client(cls, addr, **kwargs):
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ from tests.helpers.vsc import parse_message, VSCMessages, Response, Event
|
|||
|
||||
ROOT = os.path.dirname(os.path.dirname(ptvsd.__file__))
|
||||
PORT = 9879
|
||||
CONNECT_TIMEOUT = 3.0
|
||||
CONNECT_TIMEOUT = 5.0
|
||||
DELAY_WAITING_FOR_SOCKETS = 1.0
|
||||
|
||||
DebugInfo = namedtuple('DebugInfo', 'host port starttype argv filename modulename env cwd attachtype') # noqa
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue