mirror of https://github.com/lukechilds/node.git
Browse Source
Should call eio_poll() when given a done_poll signal as well. Bug report and test case by Kris Zyp <kriszyp@gmail.com>v0.7.4-release
Ryan Dahl
15 years ago
2 changed files with 37 additions and 3 deletions
@ -0,0 +1,19 @@ |
|||||
|
process.mixin(require("./common")); |
||||
|
|
||||
|
var N = 100; |
||||
|
var j = 0; |
||||
|
|
||||
|
for (var i = 0; i < N; i++) { |
||||
|
posix.stat("does-not-exist-" + i) // these files don't exist
|
||||
|
.addErrback(function (e) { |
||||
|
j++; // only makes it to about 17
|
||||
|
puts("finish " + j); |
||||
|
}) |
||||
|
.addCallback(function () { |
||||
|
puts("won't be called"); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
process.addListener("exit", function () { |
||||
|
assert.equal(N, j); |
||||
|
}); |
Loading…
Reference in new issue