mirror of https://github.com/lukechilds/node.git
Browse Source
Reported by shansen and hassox http://github.com/ry/node/issues#issue/38 Will send upstream.v0.7.4-release
Ryan Dahl
15 years ago
2 changed files with 23 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||
process.mixin(require("./common")); |
|||
var testTxt = path.join(fixturesDir, "x.txt"); |
|||
var posix = require('posix'); |
|||
|
|||
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); |
|||
posix.cat(testTxt).addCallback(function(data) { |
|||
puts("finish"); |
|||
}).addErrback(function (e) { |
|||
puts("error! " + e); |
|||
process.exit(1); |
|||
}); |
|||
} |
|||
}, 100); |
|||
|
|||
|
Loading…
Reference in new issue