Skip to content

Commit

Permalink
remove unwanted code and add delay for socket server to start
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Apr 3, 2018
1 parent 065e3cd commit 445007f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/debugger/attach.again.ptvsd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ suite('Attach Debugger - detach and again again - Experimental', () => {
await sleep(1000);
debugClient = createDebugAdapter();
debugClient.defaultTimeout = DEBUGGER_TIMEOUT;
debugClient.defaultTimeout = 1000000;
await debugClient.start();
}
/**
Expand All @@ -74,6 +73,8 @@ suite('Attach Debugger - detach and again again - Experimental', () => {
customEnv['PYTHONPATH'] = ptvsdPath;
const pythonArgs = ['-m', 'ptvsd', '--server', '--port', `${port}`, '--file', fileToDebug.fileToCommandArgument()];
procToKill = spawn('python', pythonArgs, { env: customEnv, cwd: path.dirname(fileToDebug) });
// wait for socket server to start.
await sleep(1000);
return port;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
time.sleep(5)
for i in range(10000):
time.sleep(0.5)
print(i)
pass

print('bye')

0 comments on commit 445007f

Please sign in to comment.