debug client: connect after child is ready

We now wait to connect to the debuggee until we know that
its error stream has data, to ensure that the output message
"connecting..... ok" appears after "Debugger listening on port xyz"

I also increased the test timeout to let the more complex
tests finish in time on Windows

This change fixes the following unit tests on Windows:
 test-debugger-repl.js
 test-debugger-repl-term.js
 test-debugger-repl-utf8.js
 test-debugger-repl-restart.js
This commit is contained in:
Alexis Campailla authored and Timothy J Fontaine committed 2014-01-20 09:00:14 -08:00
1 parent 574f71444c
commit e12e72eb58
2 files changed
+12 -10

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ function startDebugger(scriptToDebug) {
});
quit();
}, 5000).unref();
}, 10000).unref();
process.once('uncaughtException', function(e) {
console.error('UncaughtException', e, e.stack);