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