Skip to content

Commit

Permalink
improve ManyWatcher test for nested watching
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Aug 27, 2020
1 parent 0f88e2e commit 8014a39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ManyWatchers.js
Expand Up @@ -17,7 +17,7 @@ describe("ManyWatchers", function() {

it("should watch more than 4096 directories", done => {
const files = [];
for (let i = 1; i <= 5000; i++) {
for (let i = 1; i < 5000; i++) {
let highBit = 1;
let j = i;
while (j > 1) {
Expand All @@ -38,6 +38,8 @@ describe("ManyWatchers", function() {
files.push(path.join(fixtures, dir, "file2"));
}
}
testHelper.file("file");
files.push(path.join(fixtures, "file"));
testHelper.tick(1000, () => {
const w = new Watchpack({
aggregateTimeout: 1000
Expand Down

0 comments on commit 8014a39

Please sign in to comment.