Skip to content

Commit b40d16e

Browse files
committed
Ensure things close down correctly
1 parent 5cfb3e2 commit b40d16e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Nodejs/Product/Nodejs/TestFrameworks/ExportRunner/exportrunner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,6 @@ var run_tests = function (testCases, callback) {
107107
type: 'suite end',
108108
result: result
109109
});
110+
process.exit();
110111
};
111112
module.exports.run_tests = run_tests;

Nodejs/Product/Nodejs/TestFrameworks/run_tests.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var rl = readline.createInterface({
88
});
99

1010
rl.on('line', (line) => {
11+
rl.close();
1112
var testCases = JSON.parse(line);
1213
// get rid of leftover quotations from C# (necessary?)
1314
for (var test in testCases) {
@@ -33,7 +34,4 @@ rl.on('line', (line) => {
3334
}
3435
// run the test
3536
framework.run_tests(testCases, postResult);
36-
37-
// close readline interface
38-
rl.close();
3937
});

0 commit comments

Comments
 (0)