Cleanup stdout/stderr streams on exit

pull/222/head
cgewecke 7 years ago
parent fad486b554
commit 6255abfca1
  1. 6
      lib/app.js

@ -429,7 +429,11 @@ class App {
shell.rm('-Rf', this.coverageDir); shell.rm('-Rf', this.coverageDir);
shell.rm('./allFiredEvents'); shell.rm('./allFiredEvents');
shell.rm('./scTopics'); shell.rm('./scTopics');
if (this.testrpcProcess) { this.testrpcProcess.kill(); } if (this.testrpcProcess) {
this.testrpcProcess.stdout.destroy();
this.testrpcProcess.stderr.destroy();
this.testrpcProcess.kill();
}
if (err) { if (err) {
this.log(`${err}\nExiting without generating coverage...`); this.log(`${err}\nExiting without generating coverage...`);

Loading…
Cancel
Save