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:
Don Jayamanne 2018-07-12 10:43:03 -07:00 committed by GitHub
parent 3c29eeeab7
commit 14fdadf770
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View file

@ -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)

View file

@ -26,7 +26,7 @@ class DebugSessionConnection(Closeable):
VERBOSE = False
#VERBOSE = True
TIMEOUT = 1.0
TIMEOUT = 5.0
@classmethod
def create_client(cls, addr, **kwargs):

View file

@ -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