blob: 7dc239fb1a39a47bdcd7ff643592d3b0f1c4f42c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* XXX Can this test be modified to not call the now-removed wait()? */
common = require("../common");
assert = common.assert
console.log('first stat ...');
fs.stat(__filename)
.addCallback( function(stats) {
console.log('second stat ...');
fs.stat(__filename)
.timeout(1000)
.wait();
console.log('test passed');
})
.addErrback(function() {
throw new Exception();
});
|