Write coverage report asynchronously

This commit is contained in:
Andre Medeiros 2018-09-14 16:43:58 -04:00
parent a8a9f3e9a8
commit 103262f435
1 changed files with 3 additions and 3 deletions

View File

@ -41,9 +41,9 @@ class CodeCoverage {
}
updateCoverageReport(cb) {
fs.mkdirpSync(this.dotEmbarkPath);
fs.writeFileSync(this.coverageReportPath, JSON.stringify(this.coverageReport));
cb();
fs.mkdirp(this.dotEmbarkPath, () => {
fs.writeFile(this.coverageReportPath, JSON.stringify(this.coverageReport), cb);
});
}
async runSolc(receipt) {