Skip to content

Commit

Permalink
Fix test hanging on Windows/Linux
Browse files Browse the repository at this point in the history
Parallel watchpack's (happens when MultiCompiler is in use) do not emit events in watch tests, unless some timeout is added.
This does not seem to be an issue on macOS.
  • Loading branch information
Yuriy Ostapenko committed Jan 4, 2017
1 parent 177d224 commit 120bdfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/WatchTestCases.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ describe("WatchTestCases", function() {
runIdx++;
if(runIdx < runs.length) {
run = runs[runIdx];
copyDiff(path.join(testDirectory, run.name), tempDirectory);
setTimeout(function(){
copyDiff(path.join(testDirectory, run.name), tempDirectory);
}, 50);
} else {
process.nextTick(done);
}
Expand Down

0 comments on commit 120bdfb

Please sign in to comment.