Skip to content

Commit

Permalink
fix: wait 1 second for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Oct 25, 2016
1 parent e4c3a1c commit 76fb50f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/cov_command.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const path = require('path');
const mkdirp = require('mkdirp');
const rimraf = require('rimraf');
const sleep = require('ko-sleep');
const Command = require('./command');

class CovCommand extends Command {
Expand Down Expand Up @@ -43,6 +44,9 @@ class CovCommand extends Command {
yield this.helper.forkNode(covFile, covArgs, opt);
rimraf.sync(process.env.TMPDIR);

// wait 1 second for Windows
yield sleep(1000);

// create coverage report
const reportArgs = this.getReportArgs(coverageDir);
yield this.helper.forkNode(covFile, reportArgs, opt);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"egg-utils": "^1.0.0",
"glob": "^7.1.1",
"istanbul": "^0.4.0",
"ko-sleep": "^1.0.2",
"mkdirp": "^0.5.1",
"mocha": "^3.0.0",
"rimraf": "^2.5.4",
Expand Down

0 comments on commit 76fb50f

Please sign in to comment.