mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
402 B
21 lines
402 B
15 years ago
|
process.mixin(require("../common"));
|
||
15 years ago
|
|
||
|
var N = 100;
|
||
|
var j = 0;
|
||
|
|
||
|
for (var i = 0; i < N; i++) {
|
||
15 years ago
|
// these files don't exist
|
||
|
fs.stat("does-not-exist-" + i, function (err) {
|
||
|
if (err) {
|
||
|
j++; // only makes it to about 17
|
||
|
puts("finish " + j);
|
||
|
} else {
|
||
|
throw new Error("this shouldn't be called");
|
||
|
}
|
||
|
});
|
||
15 years ago
|
}
|
||
|
|
||
|
process.addListener("exit", function () {
|
||
|
assert.equal(N, j);
|
||
|
});
|