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.

25 lines
553 B

common = require("../common");
assert = common.assert
var path = require('path');
var testTxt = path.join(common.fixturesDir, "x.txt");
var fs = require('fs');
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++) {
console.log("start " + i);
fs.readFile(testTxt, function(err, data) {
if (err) {
console.log("error! " + e);
process.exit(1);
} else {
console.log("finish");
}
});
}
}, 100);