Skip to content

Commit aecb74a

Browse files
committed
Use beforeExit to log that we are done.
1 parent 87301de commit aecb74a

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

test/fixture/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ process.once('SIGTERM', function () {
2222
}
2323
});
2424

25-
process.once('exit', function() {
25+
process.once('beforeExit', function() {
2626
console.log('exit');
2727
});
2828

test/utils/spawn.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ function spawn(cmd, cb) {
2727
// kill the process and invoke the given function
2828
ps.removeListener('exit', exitHandler);
2929
ps.once('exit', function (code) {
30-
console.log(`Process is exiting with code: ${code}`);
3130
ps.stdout.removeListener('data', outHandler);
3231
ps.stderr.removeListener('data', errorHandler);
3332
ret.exit(code);

0 commit comments

Comments
 (0)