The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
22 lines
569 B
JavaScript
22 lines
569 B
JavaScript
var common = require('../common');
|
|
var assert = require('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..
|
|
var 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);
|