Sha256: ece1f77d9fcd6fcdc273cb78a0517b123caab6e94035aef50767a5bb023945e0
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
common = require("../common"); assert = common.assert var fs = require('fs'); var N = 100; var j = 0; for (var i = 0; i < N; i++) { // these files don't exist fs.stat("does-not-exist-" + i, function (err) { if (err) { j++; // only makes it to about 17 console.log("finish " + j); } else { throw new Error("this shouldn't be called"); } }); } process.addListener("exit", function () { assert.equal(N, j); });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rednode-0.1.2 | ext/node/test/simple/test-eio-race4.js |
rednode-0.1.1 | ext/node/test/simple/test-eio-race4.js |
rednode-0.1.0 | ext/node/test/simple/test-eio-race4.js |