0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/test/disabled/test-eio-race3.js

20 lines
371 B
JavaScript
Raw Normal View History

/* XXX Can this test be modified to not call the now-removed wait()? */
2010-02-26 21:06:32 +01:00
process.mixin(require("../common"));
puts('first stat ...');
2010-02-12 10:04:14 +01:00
fs.stat(__filename)
.addCallback( function(stats) {
puts('second stat ...');
2010-02-12 10:04:14 +01:00
fs.stat(__filename)
.timeout(1000)
.wait();
puts('test passed');
})
.addErrback(function() {
throw new Exception();
});