From 6255abfca1a586dd530df40dc4efff19982e71f9 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Fri, 20 Apr 2018 11:00:13 -0700 Subject: [PATCH] Cleanup stdout/stderr streams on exit --- lib/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/app.js b/lib/app.js index 0a44031..ef48704 100644 --- a/lib/app.js +++ b/lib/app.js @@ -429,7 +429,11 @@ class App { shell.rm('-Rf', this.coverageDir); shell.rm('./allFiredEvents'); 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) { this.log(`${err}\nExiting without generating coverage...`);