2010-02-20 02:16:02 +08:00
|
|
|
/* XXX Can this test be modified to not call the now-removed wait()? */
|
|
|
|
|
2010-12-05 07:20:34 +08:00
|
|
|
var common = require('../common');
|
2010-12-06 06:33:52 +08:00
|
|
|
var assert = require('assert');
|
2010-01-06 17:17:58 +08:00
|
|
|
|
2010-02-20 02:16:02 +08:00
|
|
|
|
2010-06-24 08:40:51 +08:00
|
|
|
console.log('first stat ...');
|
2010-01-06 17:17:58 +08:00
|
|
|
|
2010-02-12 17:04:14 +08:00
|
|
|
fs.stat(__filename)
|
2010-12-06 06:33:52 +08:00
|
|
|
.addCallback(function(stats) {
|
|
|
|
console.log('second stat ...');
|
|
|
|
fs.stat(__filename)
|
|
|
|
.timeout(1000)
|
|
|
|
.wait();
|
|
|
|
console.log('test passed');
|
|
|
|
})
|
2010-01-06 17:17:58 +08:00
|
|
|
.addErrback(function() {
|
2010-12-06 06:33:52 +08:00
|
|
|
throw new Exception();
|
|
|
|
});
|