diff --git a/lib/cov_command.js b/lib/cov_command.js index 1bce3e54..b19afc9e 100644 --- a/lib/cov_command.js +++ b/lib/cov_command.js @@ -44,8 +44,10 @@ class CovCommand extends Command { yield this.helper.forkNode(covFile, covArgs, opt); rimraf.sync(process.env.TMPDIR); - // wait 1 second for Windows - yield sleep(1000); + // wait 5 second for Windows + if (process.platform === 'win32') { + yield sleep(5000); + } // create coverage report const reportArgs = this.getReportArgs(coverageDir);