2010-02-19 19:16:02 +01:00
|
|
|
/* 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"));
|
2010-01-06 10:17:58 +01:00
|
|
|
|
2010-02-19 19:16:02 +01:00
|
|
|
|
2010-01-06 10:17:58 +01:00
|
|
|
puts('first stat ...');
|
|
|
|
|
2010-02-12 10:04:14 +01:00
|
|
|
fs.stat(__filename)
|
2010-01-06 10:17:58 +01:00
|
|
|
.addCallback( function(stats) {
|
|
|
|
puts('second stat ...');
|
2010-02-12 10:04:14 +01:00
|
|
|
fs.stat(__filename)
|
2010-01-06 10:17:58 +01:00
|
|
|
.timeout(1000)
|
|
|
|
.wait();
|
|
|
|
|
|
|
|
puts('test passed');
|
|
|
|
})
|
|
|
|
.addErrback(function() {
|
|
|
|
throw new Exception();
|
2010-02-19 19:16:02 +01:00
|
|
|
});
|