Skip to content

Commit

Permalink
delays delays
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Dec 30, 2016
1 parent 7985ba8 commit 9c17cc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions test/Watchpack.js
Expand Up @@ -60,15 +60,15 @@ describe("Watchpack", function() {
done();
});
w.watch([path.join(fixtures, "a"), path.join(fixtures, "b")], []);
testHelper.tick(function() {
testHelper.tick(400, function() {
testHelper.file("a");
testHelper.tick(function() {
testHelper.tick(400, function() {
testHelper.file("b");
testHelper.tick(function() {
testHelper.tick(400, function() {
testHelper.file("a");
testHelper.tick(function() {
testHelper.tick(400, function() {
testHelper.file("b");
testHelper.tick(function() {
testHelper.tick(400, function() {
testHelper.file("a");
});
});
Expand Down Expand Up @@ -405,9 +405,9 @@ describe("Watchpack", function() {
testHelper.file("a");
testHelper.tick(function() {
var startTime = Date.now();
testHelper.tick(function() {
testHelper.tick(400, function() {
w.watch([path.join(fixtures, "a")], [], startTime);
testHelper.tick(function() {
testHelper.tick(1000, function() {
w.close();
w2.close();
done();
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/TestHelper.js
Expand Up @@ -18,7 +18,7 @@ module.exports = TestHelper;

TestHelper.prototype._before = function before(done) {
Object.keys(watcherManager.directoryWatchers).should.be.eql([]);
this.tick(function() {
this.tick(400, function() {
rimraf.sync(this.testdir);
fs.mkdirSync(this.testdir);
done();
Expand Down

0 comments on commit 9c17cc2

Please sign in to comment.