From d6f6b3b26433a349ef704ce5960dcb168a4d7197 Mon Sep 17 00:00:00 2001 From: Haoliang Gao Date: Fri, 28 Oct 2016 16:29:23 +0800 Subject: [PATCH] fix: wait more time for Window :cry: (#17) --- lib/cov_command.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);