Skip to content

Commit

Permalink
Make sure to flush stream before exiting (#5128)
Browse files Browse the repository at this point in the history
Fixes up #5127
  • Loading branch information
anandthakker committed Aug 10, 2017
1 parent cf5eea9 commit 5149348
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/lib/harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ module.exports = function (directory, implementation, options, run) {
q.defer(write, out, post);
q.await(() => {
out.end();
console.log(`Results at: ${p}`);
process.exit(failedCount === 0 ? 0 : 1);
out.on('close', () => {
console.log(`Results at: ${p}`);
process.exit(failedCount === 0 ? 0 : 1);
});
});
});
};
Expand Down

0 comments on commit 5149348

Please sign in to comment.