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.
23 lines
480 B
23 lines
480 B
15 years ago
|
process.mixin(require("../common"));
|
||
15 years ago
|
var testTxt = path.join(fixturesDir, "x.txt");
|
||
15 years ago
|
var fs = require('fs');
|
||
15 years ago
|
|
||
|
setTimeout(function () {
|
||
|
// put this in a timeout, just so it doesn't get bunched up with the
|
||
|
// require() calls..
|
||
|
N = 30;
|
||
|
for (var i=0; i < N; i++) {
|
||
|
puts("start " + i);
|
||
15 years ago
|
fs.readFile(testTxt, function(err, data) {
|
||
|
if (err) {
|
||
|
puts("error! " + e);
|
||
|
process.exit(1);
|
||
|
} else {
|
||
|
puts("finish");
|
||
|
}
|
||
15 years ago
|
});
|
||
|
}
|
||
|
}, 100);
|
||
|
|
||
|
|