Skip to content

Commit 8014a39

Browse files
committedAug 27, 2020
improve ManyWatcher test for nested watching
1 parent 0f88e2e commit 8014a39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎test/ManyWatchers.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe("ManyWatchers", function() {
1717

1818
it("should watch more than 4096 directories", done => {
1919
const files = [];
20-
for (let i = 1; i <= 5000; i++) {
20+
for (let i = 1; i < 5000; i++) {
2121
let highBit = 1;
2222
let j = i;
2323
while (j > 1) {
@@ -38,6 +38,8 @@ describe("ManyWatchers", function() {
3838
files.push(path.join(fixtures, dir, "file2"));
3939
}
4040
}
41+
testHelper.file("file");
42+
files.push(path.join(fixtures, "file"));
4143
testHelper.tick(1000, () => {
4244
const w = new Watchpack({
4345
aggregateTimeout: 1000

0 commit comments

Comments
 (0)
Please sign in to comment.