Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 35c4469

Browse files
committed
To be squashed - fix interactive tests
1 parent 00baa54 commit 35c4469

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/debugger.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export class DebugHelper {
4040
* @param {number=} opt_debugPort Optional port to u`se for the debugging
4141
* process.
4242
*/
43-
init(debuggerClientPath: string, blockUntilExit: boolean, onStartFn: Function,
43+
init(
44+
debuggerClientPath: string, blockUntilExit: boolean, onStartFn: Function,
4445
opt_debugPort?: number) {
4546
webdriver.promise.ControlFlow.prototype.getControlFlowText = function() {
4647
let controlFlowText = this.getSchedule(/* opt_includeStackTraces */ true);
@@ -124,7 +125,7 @@ export class DebugHelper {
124125
// To be able to simulate callback/asynchronous code, we poll this object
125126
// whenever `breakpointHook` is called.
126127
this.dbgCodeExecutor = {
127-
execPromise_: null, // Promise pointing to currently executing command.
128+
execPromise_: null, // Promise pointing to currently executing command.
128129
execPromiseResult_: undefined, // Return value of promise.
129130
execPromiseError_: undefined, // Error from promise.
130131

lib/debugger/clients/explorer.js

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ WdRepl.prototype.initServer_ = function(port) {
3838
// Intentionally blank.
3939
});
4040
sock.end();
41+
// TODO(juliemr): Investigate why this is necessary. At this point, there
42+
// should be no active listeners so this process should just exit
43+
// by itself.
44+
process.exit(0);
4145
} else if (input[input.length - 1] === '\t') {
4246
// If the last character is the TAB key, this is an autocomplete
4347
// request. We use everything before the TAB as the init data to feed

0 commit comments

Comments
 (0)