node/test/disabled/test-eio-race3.js

20 lines
356 B
JavaScript
Raw Normal View History

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