Skip to content

Commit 445007f

Browse files
committed
remove unwanted code and add delay for socket server to start
1 parent 065e3cd commit 445007f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/test/debugger/attach.again.ptvsd.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ suite('Attach Debugger - detach and again again - Experimental', () => {
4949
await sleep(1000);
5050
debugClient = createDebugAdapter();
5151
debugClient.defaultTimeout = DEBUGGER_TIMEOUT;
52-
debugClient.defaultTimeout = 1000000;
5352
await debugClient.start();
5453
}
5554
/**
@@ -74,6 +73,8 @@ suite('Attach Debugger - detach and again again - Experimental', () => {
7473
customEnv['PYTHONPATH'] = ptvsdPath;
7574
const pythonArgs = ['-m', 'ptvsd', '--server', '--port', `${port}`, '--file', fileToDebug.fileToCommandArgument()];
7675
procToKill = spawn('python', pythonArgs, { env: customEnv, cwd: path.dirname(fileToDebug) });
76+
// wait for socket server to start.
77+
await sleep(1000);
7778
return port;
7879
}
7980

src/testMultiRootWkspc/workspace5/remoteDebugger-start-with-ptvsd.re-attach.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
time.sleep(5)
55
for i in range(10000):
66
time.sleep(0.5)
7-
print(i)
7+
pass
88

99
print('bye')

0 commit comments

Comments
 (0)